Enable user agent switching
Use the Mobile Browser Simulator to render the web applications on different mobile devices. To render the web applications with the appropriate style sheets and theme, we must enable user agent switching.
- Enable the detect device option when you create the web page.
- Test the application using the Mobile Browser Simulator.
The Useragent Switcher Extension is a browser extension that provides the user agent switching feature. The Mobile Browser Simulator supports implementations of this browser extension for the following web browsers:
- Mozilla Firefox.
- Chrome 17 and later, with limitations.
- Useragent Switcher Extension for Chrome
- The Useragent Switcher Extension emulates requests from different device-specific agents. When a web application checks the user agent on the server to create content, it is correctly simulated.
The Useragent Switcher Extension includes support for Dojo Mobile 1.7 and later. If we enabled the detect device option when you created your Dojo Mobile page, the Useragent Switcher Extension uses the automatic device detection and theme loading for Dojo Mobile to select the appropriate theme.
- Click Enable Useragent Switching.
- If the latest version of the Useragent Switcher Extension is not installed, the Install Useragent Switcher Extension dialog opens. Click Install Browser Extension. If we are using Chrome, we can download the extension from the Chrome Web Store.
Results
We can now view the web application with the appropriate style sheets and theme in the simulated mobile devices.
Parent topic: Mobile Browser Simulator