MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
05/08/14 11:02 AM (10 years ago)

Maps coming up blank

Hey all, So I finally figured out how to get maps working on my android app! However, I tried to update a second app, adding the package name to my api console. However, it doesn't seem to be working, it also seemed to remove the first apps package (though the first app maps seems to still work). Any idea what I'm doing wrong? Did I need to add the new app package to the api colsole? Thanks in advance!
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
05/08/14 12:03 PM (10 years ago)
That's usually because of a key mismatch. Just be sure the key you use to sign the app is the one you registered for that app's maps.
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
05/08/14 12:19 PM (10 years ago)
Do I need to register a new key? When I try to register a new key it says it's going to delete the old one...
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
05/08/14 01:34 PM (10 years ago)
Don't want to steer you wrong and end up deleting something. I do know that you can use the same maps key in multiple apps, and use the same key to sign multiple apps. I do this for several apps of mine that are published. If the SHA matches the key's in the dev portal you should be ok.
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
05/08/14 01:51 PM (10 years ago)
How do I add the second package name into the same maps key?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
05/08/14 02:12 PM (10 years ago)
I may have been thinking about the old Google Maps keys, I'm not sure you can do what I summarized earlier with the new ones. Sorry, I can't be much definitive help. I looked through my code console and it looks like I do have a separate API key for the newer apps I have, with the package name appended to the end of the key. This makes me think you need a separate key and credential registration for each app. The code console UI is terrible. It's hard to tell without being careful which app's info you are looking at.
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
05/08/14 02:18 PM (10 years ago)
Thanks! Appreciate the insight. Anyone else have answers?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/08/14 09:57 PM (10 years ago)
Make sure that your packages are discretely named; I can't imagine why it would replace your package, unless they had the same name. Maps for the new Google API don't seem to work in a simulator, so be sure to test on an actual device. Otherwise you could be perfect, but you'll never know it. There are 'two' types of API keys; Debug and Release. Make sure you get the right one (honestly, I usually bypass 'debug' and just get a release key, but each person has their own thing…) for the 'mode' you're working in. And if you *are* using a release key, make sure you have changed your Android Manifest to reflect 'Debug = false' in the app settings (just search for 'debug' and it will drop you right on it). If that doesn't work, let us know what else you tried, and we'll go from there. If you haven't read the tutorials from GoNorthWest, some of them might be a little dated, due to newer APIs and stuff, but the concepts are still sound and worth reading. He has a slew of them (and some cover Android Google Map API stuff) in the 'How To' section of this website. Hope this helps, and let us know which way the project is headed! Cheers! -- Smug
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
05/09/14 11:00 AM (10 years ago)
Smug, Seemed to figure it out! Seemed like I didn't select the correct key to make... I feel dumb... :OP However, I can't seem to get the directions to work. When I tap on the address it doesn't seem to want to give me driving directions (though I have it set to show driving directions). Any idea?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/09/14 03:34 PM (10 years ago)
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
05/09/14 03:41 PM (10 years ago)
Awesome! I'll have to take care of this next week, my brain is mush at the moment! Ha! Have a good weekend!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.