Published App on Play Store Can't Communicate with Google Maps API and Facebook API

Published App on Play Store can't communicate with Google Maps API and Facebook API

I finally solved, the problem was probably that the file google_maps_api.xml provided by the api was not loaded in the release, so i

i did like that:

buildTypes {
debug {
manifestPlaceholders = [mapsKey: "AIzaSyB8o9KzQ5YN8U8AFS************"]
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
manifestPlaceholders = [mapsKey: "AIzaSyApLacqgkdIR7uEpcf*****************"]
}
}

and then in my AndroidManifest

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${mapsKey}" />

Reference: https://stackoverflow.com/a/33917692/3235560

then i registered 2 different keys each with the right sha1 fingerprint, one debug and the other given by Google Play console (not the upload certificate, but the other one generated by Google).

Very Very thanks to Zuhad and Andy Developer for inspiration.

Google Maps not loading after publishing on play store even after updating SHA 1 fingerprint for release key

If u have enabled the App Signing Feature in the Developer Console, then it's clearly written in the documentation that the Upload Certificate is only needed by Google for authentication and that upload certificate is removed before installing the application on the user's phone. So, u also need to give the App Signing Certificate SHA under the key which you have enabled for Google Maps API.
The App Signing Page is as I have attached the screenshot for your convenience...
In the image I have marked which you need to give as additional credentials

Sample Image

Google Maps not working in derived apk (published app)

Ok, I just solved it (after making this post 13 minutes ago).

So after implementing this solution

Android Studio - Google map still blank on real Android device

I noticed that this error in my Android Monitor when running the apk from my phone:

Android Application (<cert_fingerprint>;<package_name>): <what I assume is a SHA1 fingerprint>;<my_package_name>

So I just copied the SHA1 fingerprint, added it to the API credential restrictions and saved it. And after a few minutes, ran the app again, and it worked.

No need to reupload/update apk.

Hope this helped anyone else.

Google plus Login and Google maps are not working after app is published on Play Store

Go to app Signing section under App release in Google play, here you can find a new SHA-1 key, upload that key in Firebase and everything starts working.



Related Topics



Leave a reply



Submit