We are developing an Ionic App, with firebase. This is an old project, running with Ionic v1. We are building on phonegap :
PhoneGap (iOS / Android / Windows)
cli-7.1.0 (4.5.4 / 6.3.0 / 5.0.0)
Everything was working fine and to release the app we want to secure access to firebase.
To secure access to firebase, we restricted access to GoogleAPI key from Google developer Console as explained here :
https://firebase.google.com/support/guides/launch-checklist
https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions
And we are having trouble with the iOS version (works fine for android).
What we did :
:
<platform name="ios">
<resource-file src="GoogleService-Info.plist" />
</platform>
Now we have this error :
Error : {"error":{"code":403,"message":"Requests from this ios client application <empty> are blocked.","errors":[{"message":"Requests from this ios client application <empty> are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}}
I have been looking for two days, but I do not understand :
Thank you in advance,
David
I had the same issue and I checked GoogleService-Info.plist
. Database url was different with my project. So, be sure that all components match with your project.
This solved my issue!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With