kfmfkgmkfgk
kfmfkgmkfgk

Reputation: 1

fetching remote config and unauthorized user access error only on emulator

as i use firebase remote config on my flutter android app (flutter 3.29, gradle 8.10.2, gms 4.4.2, bom 33.9, jdk 17) it throw [firebase_remote_config/forbidden] Fetch failed: The user is not authorized to access the project. Please make sure you are using the API key that corresponds to your Firebase project. exception only on emulator (bluestacks 5, api 29) but it works well on real device (api 34).

[info] generated google-services.json file oauth clients are type 1 (that used for web) instead of type 3 (for android) with android_info filed that is a object with two fields for package and signature, the api keys restriced on android device only but config didnt changed but it works fine on real device (before android setup i had a web setup too (for flutter web and it worked well) but all web related credenials and api keys are removed). also debug and release signatures (both sha1-sha256) are added , all related and required apis are active.

any solution/fix or atleast cause/reason?

Upvotes: 0

Views: 52

Answers (0)

Related Questions