2017-06-08 1 views
0

7.1.2。 iOS Safariでのみ発生するようです。は、私はこのエラーが表示サファリ

私はCordovaの問題を報告している他の人たちを見ていますが、答えは見当たりません。私はWebとFirebaseだけを使っています。コルドバやイオンなどではありません。

匿名ログインはiOS上で動作しますが、これはテストに過ぎず、使用するものではありません。

あなたはそれをテストしたい場合は、返却の約束からのエラーオブジェクトの例ダンプがあるのiOS

上のSafariからhttps://meetup-reporter.firebaseapp.com/を使用することができます。

{"code": "auth/operation-not-supported-in-this-environment", "constructor": function (a, b) {this.code="auth/"+a;this.message=b||Xf[a]||"";}, "F": function() {return{code:this.code,message:this.message}}, "line": 44, "message": "This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled.", "sourceURL": " https://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js ", "stack": " https://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js:44:638 \nhttps://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js:45:258\[email protected]https://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js:44:545 \[email protected]https://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js:45:242 \[email protected]https://meetup-reporter.firebaseapp.com//firebase/4.1.2/firebase-auth.js:241:48 \[email protected]https://meetup-reporter.firebaseapp.com/__/firebase/4.1.2/firebase-auth.js:260:432 \nhttps://meetup-reporter.firebaseapp.com/scripts/main.js:430:36", "toJSON": function() {var a=Array.prototype.slice.call(arguments);a:{var e=Array.prototype.slice.call(a);var l=0;for(var n=!1,C=0;Cl||l>=fk.length)throw new N("internal-error","Argument validator received an unsupported number of arguments.");e=fk[l]+" argument "+(e.name?'"'+e.name+'" ':"")+"must be "+e.N+".";break a}e=null}}if(e)throw new N("argument-error",d+" failed: "+e);return b.apply(this,a);}}

答えて

0

signInWithRedirectが実際に今、コルドバで動作します:https://firebase.google.com/docs/auth/web/cordovaを signInWithPopupとsignInWithRedirectもiOS7以降で動作するはずです。私はiOS 7デバイスで両方をテストしましたが、両方とも動作します。あなたが経験していることは、あなたがSafari Private/Incognitoモードでこの操作を使用していて、Webストレージが無効になっている可能性が高いことです。これらの操作は、OAuthの結果を親ページに安全に伝達するためにWebストレージに依存します。この場合、ユーザーに通常モードに切り替えるか、Google Sign-in JS SDkを使用してOAuthクレデンシャルを取得してからsignInWithCredentialを使用することができます。シークレットモードで動作すると思います

+0

ありがとう@bojeil私はテストしたので、firebase signInWithPopupまたはsignInWithRedirect経由でモバイルサファリを動作させることができませんでした。しかし、GoogleのサインインJS SDKは古いiPhone/Safari /などで動作します。ありがとう!そのようにしたい場合は、https://firebase.google.com/docs/auth/web/google-signin#advanced-handle-the-sign-in-flow-manuallyをご覧ください。 –

関連する問題