I am getting this error from Play Store:
I tried to limit the access of API key within that file but still getting this error. How can I solve this?
CodePudding user response:
Make sure that keys are not leaked via sites such as GitHub.
Notice the message wording "Your app contains exposed ...". That message did not say your app is exposing the keys.
You will need to delete the key and create a new key, update your app, etc.
CodePudding user response:
Delete current key and create new one. Also make sure you apply restrictions like HTTP referrers, IP Address restrictions etc. based on your use case. For more info, check this https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions