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.