Why is Firebase returning 404 errors in PhoneGap app when running on Android emulator?

前端 未结 1 1773
南方客
南方客 2021-01-24 07:11

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).

1条回答
  •  有刺的猬
    2021-01-24 07:36

    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:

      
      

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

    0 讨论(0)
提交回复
热议问题