Chapter 13 P 241 states ‘getting the SHA1 key for release builds will be covered in Section VI, “Submitting Your App”. ‘ However, Section VI does not cover the ‘release’ SHA-1 or API keys for a Google Maps API based app.
I tried the following in the key store folder of my app:
keytool -list -keystore MyAppKeyStore.jks
and got the SHA1 key.
However, it seems to actually release a Google Maps API app thru the Google Play lifecycle, one needs:
- Update the release google_maps_api.xml with the API key (not just the debug file, so 2 files must be updated)
- Update Google Cloud API Credentials (not sure if optional if an app does not need Restrictions?)
- Add a Billing account to the project in Google Cloud.
I set all up, but still the App Release version of the app did not show the map upon launch on a real phone for alpha testing. Only a gray area (though the Search button and all other functions worked fine!).
The book can be significanly beneficial to the apprentices if it completes the Maps project with the needed Cloud/API/Billing setups to actually release it on the Google Play store. Thanks.