Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: maps blank in release apk #327

Closed
allthetime opened this issue Jun 25, 2016 · 10 comments
Closed

Android: maps blank in release apk #327

allthetime opened this issue Jun 25, 2016 · 10 comments

Comments

@allthetime
Copy link
Contributor

allthetime commented Jun 25, 2016

Hey, I just packaged my app up for release, and for some reason maps are not loading. They work fine in debug mode, but are just grey in the release version, with the google logo in the bottom left corner.

Anyone know what's going on?

@texas697
Copy link

texas697 commented Jul 6, 2016

your google map api key?

@allthetime
Copy link
Contributor Author

allthetime commented Jul 7, 2016

@texas697 ya definitely. the key I was using wasn't signed with my release key.

@wkw
Copy link

wkw commented Feb 23, 2017

@allthetime Can you elaborate? I'm having same problem. Fine in debug, but in release api, I see all white screen, and a little Google logo at bottom left. Not clear what steps I need to take. thanks!

[Edit]
Figured it out. Instructions towards bottom of page here https://developers.google.com/maps/documentation/android-api/signup

I only had my debug keystore SHA-1 entered. Didn't realize need to run same thing. Went through the routine for release keystore and all is good.

If you want to use different keys for debug/release/whatever, I found this advice on setting up gradle to substitute values in AndroidManifest.xml based on build type.
http://stackoverflow.com/a/28373641/161625

Screensnap of the api console key setup.

image

@mistryhiren94
Copy link

I'm facing same problem,
map work on debug but it's not working on Google Play Store
please help
thanks

@mistryhiren94
Copy link

Hi
solved by replacing SHA1 key from Google play store

@twinkleSiya
Copy link

twinkleSiya commented Feb 24, 2018

Hi
Debug apk install and app work properly and google map show, too
but release generated apk install when map not showing in please solution
All process are done for(SHA-1 key and package), but i'm facing same problem
Could you please guide me for the same on how to resolve it asap? I really need to get this done. Help me.

@jakeOliv
Copy link

jakeOliv commented May 7, 2018

same problem here, done adding SHA 1 key using keytool, but not working. app works in debug build but not in release.. please help

@mistryhiren94
Copy link

@jakeOliv add the SHA1 key which is given by PlayStore,
it works for me

@stevebaros
Copy link

My simple insight on those still struggling with this. use the solution given by @wkw it will work ,

the secret is here https://cloud.githubusercontent.com/assets/1691220/23273776/5418ae8e-f9ce-11e6-8bb2-d0ef5b13dc5b.png

@AizenSousuke
Copy link

is this the keystore that is in the /android/app folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants