问题
I have Android app with Google maps.
Debug and Release versions of APK works fine if I build and install it directly to phone.
But when I install the APK from Google Play (Alpha or Beta testing), maps are not shown (blank screen).
I have of course API key in release XML file and so on...I cannot understand, why same APK is okay, if I install it directly to phone and maps is not shown if this APK is installed via Google Play.
Any advise?
回答1:
I found a problem. Somebody from our team enabled (accepted) "Google Play App Signing" for this app (see more here). So adding SHA from Google Play Console to Google Console (API key) solved this problem.
来源:https://stackoverflow.com/questions/48943261/google-maps-dont-work-if-apk-is-installed-via-google-play