User-agent switching fails in Mobile Browser Simulator

Technote (troubleshooting)


In IBM Worklight Studio 5.0.5, when using the Mobile Browser Simulator to preview Android, iPhone, iPad, Blackberry, Windows Phone or Mobile Web App environments, the Firefox and Chrome user-agent switcher extensions are not working.  In Chrome, the extension has no effect.  In Firefox, having the user-agent switcher extension might prevent the tested web application from being displayed. In such cases, it is recommended to disable or uninstall the extension from Firefox.

Resolving the problem

This workaround only applies to the Chrome extension. The Chrome user-agent switcher extension will work as expected if you add the following script tag in your html file: 
<script> require([ "dojox/mobile/deviceTheme" ], function() {}); </script>

This issue is resolved in version

Cross reference information
Segment Product Component Platform Version Edition
Mobile- Speech and Enterprise Access IBM Mobile Foundation Studio AIX, HP-UX, Linux, Mac OS X, Solaris, Windows 5.0.5 Consumer, Enterprise

Document information

More support for:

IBM Worklight

Software version:


Operating system(s):

AIX, HP-UX, Linux, OS X, Solaris, Windows

Software edition:

Consumer, Enterprise

Reference #:


Modified date:


Translate my page

Content navigation