Giter VIP home page Giter VIP logo

Comments (5)

osenel avatar osenel commented on July 17, 2024 1

Hello, I have solved the issue by using another method which is described in [https://github.com/arnesson/cordova-plugin-firebase] (I have NOT install arnesson's plugin)
Here is my code:

`var VerifId;
cordova.plugins.firebase.auth.verifyPhoneNumber(EnteredPhoneNum).then(function(verificationId) {
VerifId=verificationId;
EnterCode();
});
function EnterCode(){

SMS_code = prompt("Please enter the code in SMS ", "");
try {
var credential = firebase.auth.PhoneAuthProvider.credential(VerifId, SMS_code);
}
catch(err) {alert("PhoneAuthProvider.credential sonrası catch error: "+err.message);}

firebase.auth().signInWithCredential(credential).then(function(error){
alert("signInWithCredential error: "+error.message);
});
}
`

from cordova-plugin-firebase-authentication.

donvie avatar donvie commented on July 17, 2024

We have same problem, Have you fixed it, Share your solutions to me Thansk :-)

from cordova-plugin-firebase-authentication.

donvie avatar donvie commented on July 17, 2024

@osenel Thanks got it <3

from cordova-plugin-firebase-authentication.

msuhaibk avatar msuhaibk commented on July 17, 2024

i have the same issue.

cordova.plugins.firebase.auth.onAuthStateChanged(function(userInfo) {
if (userInfo && userInfo.uid) {
alert("user signed in"); // THIS ALERT FIRES IN MY CASE
} else {
alert("user signed out");
}
});

function checkUser(){ // called by button
currentUserUID= firebase.auth().user;
alert("currentUserUID: " +currentUserUID); //THIS DOES NOT 
}

there is an incompatibility for this plugin with the official firebase plugin.

from cordova-plugin-firebase-authentication.

 avatar commented on July 17, 2024

Same issue as above- from onAuthStateChanged I get userInfo & userInfo.uid but as soon as I attempt a write I get permission denied errors (As my rules are set to write if request.auth).

Is there any work around or patch that can be implemented until this is resolved?

from cordova-plugin-firebase-authentication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.