cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: iOS InAppBrowser user agent troubles
Date Thu, 05 Sep 2013 22:07:44 GMT
Well that's a new one. This was encountered some time ago as well:
https://issues.apache.org/jira/browse/CB-2225 but with PDFs


On Thu, Sep 5, 2013 at 11:14 PM, Pridham, Marcus <marcus.pridham@sap.com>wrote:

> Has anyone else run into issues with the iOS InAppBrowser changing the
> Cordova webviews user agent.
>
> If I run the following JavaScript in the InAppBrowser:
> window.location.hash = "anchor";
>
> The user agent of the Cordova web view changes from:
> Mozilla/5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit/536.26
> (KHTML, like Gecko) Mobile/10B141 (176830592)
>
> Into:
>
> Mozilla/5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit/536.26
> (KHTML, like Gecko) Mobile/10B141
>
>
> The new user agent messes up the whitelist so all requests can go through
> and if I navigate to a new page in the Cordova web view deviceready does
> not fire :(
>
> I create an issue with a sample app here:
> https://issues.apache.org/jira/browse/CB-4740
>
> Thanks
> Marcus
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message