Javascript 我收到一个错误,谷歌在iphone中禁用了useragent,但同样的代码在android上运行,但在iphone中没有使用phonegap
这是我用谷歌编写的代码,谷歌在安卓上运行得很好,但在iphone上却不工作,我收到了这个错误 错误403谷歌不允许的用户代理Javascript 我收到一个错误,谷歌在iphone中禁用了useragent,但同样的代码在android上运行,但在iphone中没有使用phonegap,javascript,cordova,phonegap-plugins,Javascript,Cordova,Phonegap Plugins,这是我用谷歌编写的代码,谷歌在安卓上运行得很好,但在iphone上却不工作,我收到了这个错误 错误403谷歌不允许的用户代理 var openAuthWindow = function(){ var urlAuth = "https://accounts.google.com/o/oauth2/auth?" + "scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww
var openAuthWindow = function(){
var urlAuth = "https://accounts.google.com/o/oauth2/auth?"
+ "scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&"
+ "redirect_uri=http://localhost&"
+ "response_type=code&"
+ "client_id=" + clientId;
// Open InAppBrowser to get authorization code
authWindow = window.open(urlAuth, '_blank', 'location=no');
authWindow.addEventListener('loadstart', parseRedirectUrl);