FirebaseExtended / angularfire

AngularJS bindings for Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This operation is not supported in the environment

gsopu8065 opened this issue · comments

error Error: This operation is not supported in the environment this application is running on. "location.protocol" must be http or https and web storage must be enabled.

<script src="https://www.gstatic.com/firebasejs/3.4.1/firebase.js"></script> <script src="https://cdn.firebase.com/libs/angularfire/2.0.2/angularfire.min.js"></script>
auth.signInWithPopup(provider).then(function (result) {
 if (result.credential) {
 // This gives you a Facebook Access Token. You can use it to access the Facebook API.
 var token = result.credential.accessToken;
 }
 }).catch(function (error) {
 var errorCode = error.code;
 var errorMessage = error.message;
 // The email of the user's account used.
 var email = error.email;
 // The firebase.auth.AuthCredential type that was used.
 var credential = error.credential;
 });

This is a usage question, which is better suited for Stack Overflow or the Firebase Google Group. Can you please re-post on one of those forums and paste the link here? Please also remember to include version information, environment information, and a code sample (if relevant) to help us resolve your issue.