Ionic V2 firebase.auth().onAuthStateChanged 1 minute delay on Ios


#1

In my Ionic V2 app I am using firebase auth and am experiencing exactly a 1 minute delay when I call

 firebase.auth().onAuthStateChanged(function(user) {
      console.log("onauthstatchanged in login v2",user);

.
.
.

It responds instantly on the browser but on ios simulator and iphones it is a 1 minute delay.
Please help, I have tried many things to no avail.

I am using
Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.4
ios-deploy version: 1.9.1
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.3.1


#2

Hey :slight_smile:
In my case this bug was related to the firebase version 3.8.0 - i reported the bug and the firebase team is looking into it.
For now i’m simply using firebase version 3.7.8 and everything works like before :slight_smile: