FIrebase Google auth operation not supported in this environment

会有一股神秘感。 提交于 2019-12-04 17:33:48

popup and redirect operations are not currently supported in Ionic/Cordova environment. As a a fallback you can you an oauth cordova plugin to obtain a google/facebook OAuth access token and then sign in the user via signInWithCredential. Check this thread for more on this:

auth.signInWithCredential(firebase.auth.FacebookAuthProvider.credential(fbAccessToken));

https://groups.google.com/forum/#!searchin/firebase-talk/facebook$20cordova/firebase-talk/mC_MlLNCWnI/DqN_8AuCBQAJ

Try the following because local storage is not enabled in webView, which is required for firebase

webSettings.setDomStorageEnabled(true);

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!