Platform specific user agent used when loading the url in a tab or dialog. Replaces the default AIR user agent. It can be useful to use a specific userAgent when you're loading an external website which is not working correctly with the default AIR user agent.
<action>
<userAgents>...</userAgents>
</action>
Examples
Define a userAgent for Mac OS X
<userAgents>
<userAgentMacOSX>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2</userAgent>
</userAgents>
Define a userAgent for Windows
<userAgents>
<userAgentWindows>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</userAgentWindows>
</userAgents>
Define a userAgent for Mac OS X and Windows
<userAgents>
<userAgentMacOSX>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1</userAgentMacOSX>
<userAgentWindows>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1</userAgentWindows>
</userAgents>
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.