Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/469.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我收到一个错误,谷歌在iphone中禁用了useragent,但同样的代码在android上运行,但在iphone中没有使用phonegap_Javascript_Cordova_Phonegap Plugins - Fatal编程技术网

Javascript 我收到一个错误,谷歌在iphone中禁用了useragent,但同样的代码在android上运行,但在iphone中没有使用phonegap

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

这是我用谷歌编写的代码,谷歌在安卓上运行得很好,但在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.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);