Version v.2.0 is provided without source code.
Is there a way to set custom browser user agent for iOS?
I need it to allow Google auth, which does not work with in-app browser native user agent header.
Old code:
– (void)startLoadingWebView {
//set cutom user agent
NSString *customUA = @”Mozilla/5.0 (iPod; CPU iPhone OS 12_0 like macOS) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/12.0 Mobile/14A5335d Safari/602.1.50; Unity Mobile”;
NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:customUA , @”UserAgent”, nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
…
Thanks!