1

I am using Firebase + Firebase Simple Login in a PhoneGap app and am having issues when I run the app in an Android emulator (browser-based testing works fine).

enter image description here

Note: I ran into this issue earlier, but I added cordova.js and no loner see the security restrictions warning.

All that is happening now is 404 error responses and I'm not sure what to do about it.

Community
  • 1
  • 1
  • 2
    Did you add the firebase server to your whitelist? – MBillau Mar 13 '14 at 15:43
  • 1
    No, I had not even thought about that. I went ahead and added the appropriate domains to the whitelist and all is well. –  Mar 13 '14 at 16:57
  • We've published a blog post which will help with setup and some of the gotchas: https://www.firebase.com/blog/2014-07-25-ionic-simple-login.html – Ossama Jul 25 '14 at 19:32

1 Answers1

2

You need to add firebase.com to your app's whitelist.

Assuming you're using PhoneGap 3.x+, follow these steps:

  1. Edit config.xml (see Cordova's docs for more about where that file lives)
  2. Add a rule allowing firebase and subdomains:

    <access uri="https://*.firebaseio.com" subdomains="true" />
    

You might also find this question helpful. It has a bunch of stuff in it about whitelisting in Cordova / PhoneGap.

Community
  • 1
  • 1
mimming
  • 13,974
  • 3
  • 45
  • 74