Skip to main content

User-agent switching fails in Mobile Browser Simulator


Technote (troubleshooting)


Problem(Abstract)

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 5.0.5.1


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

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

IBM Worklight

Studio


Software version:
5.0.5


Operating system(s):
AIX, HP-UX, Linux Red Hat - xSeries, Linux SUSE - xSeries, Mac OS X, Solaris, Windows


Software edition:
Consumer, Enterprise


Reference #:
1620567


Modified date:
2013-01-24

Translate my page

Content navigation