My Phonegap application is allowed to browse to some external sites that also use the Phonegap API. Currently I am conditionally including the Phonegap javascript based on
I couldn't get this to work in iOS using Cordova 3.3, presumably because of CB-2520 but, as a hack, I modified CDVViewController
.h to make the userAgent
property readwrite, and then simply updated self.userAgent in the viewDidLoad
of my controller that inherits from CDVViewController
.
If timing is an issue, you could forcibly manipulate the userAgent
lazy-loaded property in CDVViewController.m
.
Both of these are very dirty. :)