Firebase not worked on real devices (iOS)

后端 未结 3 715
别跟我提以往
别跟我提以往 2021-01-05 10:13

I install Firebase in my iOS app. Everything works fine on simulator but on real device it doesn\'t execute / return a query to my database.

I try to clean the pro

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 10:47

    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:

    1. Remove the your APP from real device.
    2. Go to your project in Navigation Panel.
    3. In General tab change your Bundle identifier, for example: "myApp.com" to "myApplication.com" or whatever you want.
    4. Build and run
    5. 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

提交回复
热议问题