1

Currently working on a Firebase app on IOS 10 have been using Firebase UI. When I run the app on my simulator, it works fine and the data from FirebaseUI and a simple Firebase Database call grabbing the same data works (testing reasons to ensure it's not FirebaseUI).

BUT... when I switch to testing on a real device. My Tableview is empty, and the logs show no data is being pulled, not even a confirmation of user authorization that I log out.

I've tried changing the "bitcode" to no as suggested by another post, but still nothing. I am using Objective C, and not swift. Any thoughts?

Jeremy
  • 241
  • 4
  • 17
  • your simulator and device are connected to the same network? – martin jakubik Sep 23 '16 at 15:22
  • Yes, I am on a school network. My simulator is hard wired and my real device is connected to their wifi. – Jeremy Sep 23 '16 at 15:25
  • then does it work when the simulator is on wifi? (shooting in the dark here) – martin jakubik Sep 23 '16 at 15:27
  • I'm actually using a MacPro without a Wifi card so I can't even be certain of that. I've tried to use my real device on a different Wifi and had no luck. – Jeremy Sep 23 '16 at 15:30
  • I am having the same problem now. It happened after messing with certificates for messaging. Have you solved this? – Ro4ch Oct 10 '16 at 22:42
  • 2
    I realized something was happening with my user object that my data was dependent on in the firebase rules tabs. I logged out and logged back in to confirm the Auth went through and it worked again for me. – Jeremy Oct 11 '16 at 14:10
  • 1
    I hope this helps http://stackoverflow.com/a/41200174/2294985 – Omar HossamEldin Dec 17 '16 at 15:36
  • Here what helped me: I explicitly logged out from real device and then sign in again, and DB immediately start responding. I think Firebase cached key and didn't renew it properly. – Jurasic Mar 24 '17 at 14:00

1 Answers1

2

Make sure you have the pod 'Firebase/Core' in your Podfile, and "import FirebaseCore" in your Swift file.

jacefarm
  • 6,747
  • 6
  • 36
  • 46
ZJiang
  • 36
  • 4
  • How it can be the correct answer? If pod isn't installed or some import missing, you won`t be able to even compile the app. – Jurasic Mar 24 '17 at 13:27
  • It was something like 'import Firebase' before, there is a name change. – ZJiang Jul 19 '17 at 10:30
  • same situation for worked for me in Database, even I installed Firebase and Fireabase/Database, for not installing Firebase/Core, database did not respond to any action – eemrah Sep 05 '19 at 10:33