Notifications

232 views

How to troubleshoot homepages not loading in Mobile UI ($m.do)


The objective of this article is to help troubleshooting home pages on the mobile UI.

 

Procedure


  • Access the instance from mobile browser
  • https://<instance-name>.service-now.com/$m.do#/home
  • The home page keeps loading indefinitely...
  • Access the instance from the standard desktop UI 
  • https://<instance-name>.service-now.com
  • The home page loads properly.

 

Problem


In such a scenario, navigating to /$m.do you might observe the following JavaScript error in the bowser console:


Uncaught (in promise) TypeError: Cannot read property 'hide_favorites_page' of undefined 
at y (js_includes_snm.jsx?v=09-05-2017_1648&lp=Thu_Dec_28_17_54_22_PST_2017&c=22_282:10) 
at Object.v [as getHomepageData] (js_includes_snm.jsx?v=09-05-2017_1648&lp=Thu_Dec_28_17_54_22_PST_2017&c=22_282:10) 
at js_includes_snm.jsx?v=09-05-2017_1648&lp=Thu_Dec_28_17_54_22_PST_2017&c=22_282:10 
at <anonymous> 

 

Resolution


The error occurs because records in the [sys_ui_mobile_home_page_module] associated modules are either not present, or set as inactive in the mobile modules list.

For example: "Share Location", "Favorite KPIs", and "Connect Chat".

 

For the Home page to load properly in the Mobile browser, [sys_ui_mobile_home_page_module] records should have mobile modules associated with them. These should be active in the Mobile modules as well.

 

Article Information

Last Updated:2018-01-29 07:35:52
Published:2018-01-15
Screen Shot 2018-01-05 at 8.04.51 AM.pngscreenshot mobile module.png