Firebase not worked on real devices (iOS)
There is no fault in your code, I had the same problem. Here is what I did:
Simply go to Your Project in the navigation pane on the left.
Go to Build Settings and scroll down to Build Options.
Change the value of Enable Bitcode to No.
Hope it works out for you too!
I found that if you logged in, and delete the application, then after you install the application again, you will still be logged in. I do not know exactly, but I assumed that Firebase somehow binds the account cache to the Bundle Identifier, not in the local storage.
So the solution is simple and it worked for me:
- Remove the your APP from real device.
- Go to your project in Navigation Panel.
- In General tab change your Bundle identifier, for example: "myApp.com" to "myApplication.com" or whatever you want.
- Build and run
- Bingo! Now your app should interact well with Firebase again.
Update: Firebase remembers your login in the keychain
Update: Firebase remembers your data in keychain using your Bundle identifier as key