onAuthStateChanged returns null when the verification mail is sent form ionic app where as in angular the...












0















I have an email verification page in angular and the sign up page in ionic app. When I create a user from angular, everything works well but when I sign up a user from ionic application onAuthStateChanged, it doesn't return any user. Stuck here for a long time guys help me out



To send the verification email I am using
AngularFireAuth.auth.currentUser.sendEmailVerification()
this signup process is done in the ionic app.



The action link which I specified in firebase is a route in angular site.To handle the verification I am using THE following snippet on ngOnInit life cycle hook.



AngularFireAuth.auth.onAuthStateChanged((user) => {
if(user){
console.log("user verified")
} else {
console.log("there are no user state changes");
}
});


The user is always null when the verification link is sent from ionic where as I tried the same in angular it worked and user gets verified.I am using the same API credentials in both angular and ionic applications.Can anyone help me out to resolve this issue










share|improve this question















put on hold as off-topic by Frank van Puffelen, Jay, Bob Dalgleish, Eray Balkanli, DebanjanB 11 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, Bob Dalgleish

If this question can be reworded to fit the rules in the help center, please edit the question.














  • @Frank van Puffelen I have added the minimal code sample could you please review it

    – naveen ashok
    1 hour ago
















0















I have an email verification page in angular and the sign up page in ionic app. When I create a user from angular, everything works well but when I sign up a user from ionic application onAuthStateChanged, it doesn't return any user. Stuck here for a long time guys help me out



To send the verification email I am using
AngularFireAuth.auth.currentUser.sendEmailVerification()
this signup process is done in the ionic app.



The action link which I specified in firebase is a route in angular site.To handle the verification I am using THE following snippet on ngOnInit life cycle hook.



AngularFireAuth.auth.onAuthStateChanged((user) => {
if(user){
console.log("user verified")
} else {
console.log("there are no user state changes");
}
});


The user is always null when the verification link is sent from ionic where as I tried the same in angular it worked and user gets verified.I am using the same API credentials in both angular and ionic applications.Can anyone help me out to resolve this issue










share|improve this question















put on hold as off-topic by Frank van Puffelen, Jay, Bob Dalgleish, Eray Balkanli, DebanjanB 11 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, Bob Dalgleish

If this question can be reworded to fit the rules in the help center, please edit the question.














  • @Frank van Puffelen I have added the minimal code sample could you please review it

    – naveen ashok
    1 hour ago














0












0








0








I have an email verification page in angular and the sign up page in ionic app. When I create a user from angular, everything works well but when I sign up a user from ionic application onAuthStateChanged, it doesn't return any user. Stuck here for a long time guys help me out



To send the verification email I am using
AngularFireAuth.auth.currentUser.sendEmailVerification()
this signup process is done in the ionic app.



The action link which I specified in firebase is a route in angular site.To handle the verification I am using THE following snippet on ngOnInit life cycle hook.



AngularFireAuth.auth.onAuthStateChanged((user) => {
if(user){
console.log("user verified")
} else {
console.log("there are no user state changes");
}
});


The user is always null when the verification link is sent from ionic where as I tried the same in angular it worked and user gets verified.I am using the same API credentials in both angular and ionic applications.Can anyone help me out to resolve this issue










share|improve this question
















I have an email verification page in angular and the sign up page in ionic app. When I create a user from angular, everything works well but when I sign up a user from ionic application onAuthStateChanged, it doesn't return any user. Stuck here for a long time guys help me out



To send the verification email I am using
AngularFireAuth.auth.currentUser.sendEmailVerification()
this signup process is done in the ionic app.



The action link which I specified in firebase is a route in angular site.To handle the verification I am using THE following snippet on ngOnInit life cycle hook.



AngularFireAuth.auth.onAuthStateChanged((user) => {
if(user){
console.log("user verified")
} else {
console.log("there are no user state changes");
}
});


The user is always null when the verification link is sent from ionic where as I tried the same in angular it worked and user gets verified.I am using the same API credentials in both angular and ionic applications.Can anyone help me out to resolve this issue







firebase ionic-framework email-verification






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago







naveen ashok

















asked 22 hours ago









naveen ashoknaveen ashok

14




14




put on hold as off-topic by Frank van Puffelen, Jay, Bob Dalgleish, Eray Balkanli, DebanjanB 11 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, Bob Dalgleish

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Frank van Puffelen, Jay, Bob Dalgleish, Eray Balkanli, DebanjanB 11 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, Bob Dalgleish

If this question can be reworded to fit the rules in the help center, please edit the question.













  • @Frank van Puffelen I have added the minimal code sample could you please review it

    – naveen ashok
    1 hour ago



















  • @Frank van Puffelen I have added the minimal code sample could you please review it

    – naveen ashok
    1 hour ago

















@Frank van Puffelen I have added the minimal code sample could you please review it

– naveen ashok
1 hour ago





@Frank van Puffelen I have added the minimal code sample could you please review it

– naveen ashok
1 hour ago












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre