You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
is there a way to assign a userAgent to iOSHTMLViewer to simulate the desktop browser?
I tried to assign it with a javascript and it works
but unfortunately when you run a new javascript in the browser I lose the userAgent assigned.
do you have any solution?
Thanks
Stefano
The text was updated successfully, but these errors were encountered:
According to this answer on Stackoverflow https://stackoverflow.com/a/27330998
You should be able to set the user agent throughout the whole app by placing this code in the App.Open event
Dim keys() As Foundation.NSObject keys.Append new Foundation.NSString("UserAgent") Dim values() As Foundation.NSObject values.Append new Foundation.NSString("Mozilla/5.0") //Change this Dim nsDic As new Foundation.NSDictionary(keys, values) Foundation.NSUserDefaults.StandardUserDefaults.RegisterDefaults(nsDic)
Hello,
is there a way to assign a userAgent to iOSHTMLViewer to simulate the desktop browser?
I tried to assign it with a javascript and it works
but unfortunately when you run a new javascript in the browser I lose the userAgent assigned.
do you have any solution?
Thanks
Stefano
The text was updated successfully, but these errors were encountered: