Google maps don't work if APK is installed via Google Play

耗尽温柔 提交于 2019-12-25 18:23:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!