location.protocol" must be http or https

自古美人都是妖i 提交于 2019-12-07 23:25:27

问题


I developing a hybrid mobile application using Cordova + Angular 2 + Ionic 2.

When using firebase Auth, when calling signInWithPopup() or signInWithRedirect() for social logins, firebase returns error "This operation is not supported in the environment this application is running on. "location.protocol" must be http or https."

There's also a number of comments on this article, about same thing: https://firebase.googleblog.com/2016/01/social-login-with-ionic_77.html

This is because the location.protocol is file:// and NOT http/s. All hybrid apps will have this issue.

Help.

来源:https://stackoverflow.com/questions/38949085/location-protocol-must-be-http-or-https

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