Error with $signInWithPopup method on Ionic 1 and Angular 1: This operation is not supported in the environment this application is running on. "location.protocol" must be http or https.
See original GitHub issueAfter upgrading to Firebase 3 and Angularfire 2.0.1 on an Ionic 1 / Angular 1 application, I am getting the following error when trying to bring an auth popup from firebase (worked with the older methods): This operation is not supported in the environment this application is running on. “location.protocol” must be http or https.
The method I use is the $signInWithPopup method
Sample code:
var provider = new firebase.auth.GoogleAuthProvider();
Auth.$signInWithPopup(provider).then(function(authData) {
// User successfully logged in
}).catch(function(error) {
// Login error
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Angular with Cordova and Ionic Firebase ... - Stack Overflow
OK according to the firebase documentation for the signInWithPopup() method your error means the following:.
Read more >Ionic 1 and Angular 1 Firebase running on iOS and Android ...
Error : This operation is not supported in the environment this application is running on. "location.protocol" must be http or https and web...
Read more >Firebase auth/operation-not-supported-in-this-environment ...
I'm having a problem with Capacitor when logging in to Firebase via GoogleAuthProvider. const provider = new firebase.auth.
Read more >signinwithpopup not working - You.com | The Search Engine You ...
I have this working fine using the signInWithRedirect() firebase auth method. However, i cannot get the signInWithPopup() method to work. A new electron...
Read more >Easily add sign-in to your Web app with FirebaseUI - Google
Warning: FirebaseUI is not currently compatible with the v9 modular SDK. ... <script src="https://www.gstatic.com/firebasejs/ui/6.0.1/firebase-ui-auth.js">< ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jwngr Do you know when Cordova / Ionic will support popup / redirect sign in methods in Firebase v3?
We recently did some work to get
signInWithPopup()
working in Chrome extensions, but I don’t think that covers the Cordova / Ionic use case. We are working through these issues though. Keep an eye on the release notes for future improvements.