Google Maps doesn't work

Hi all,

Since Google changed Maps API to v.2.0 the maps on compiled app doesn't show.

I used fresh default Dolphin app, signed it, used SHA1 and package name to generate the API 2.0 key

 

32:5F:xx:7E:88:56:ED:xx:xx:xx:xx:xx:xx:EB:1D:xx:79:72:xx:FD;com.boonex.oo.location

got API key

 

AIzaSyBEnfWxxxxxxxxxxxxxMTwPLQbCy5ja8

I put it into the google_maps_key in the app, exported signed app, installed on Android device - map doesn't load.

 

I do have google-play-services lib installed and attached to the app.

 

That's what I'm getting in log tagged as MapActivity when accessing Maps screen on device:

 

Recycling dispatcher android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher@40722340

Recycling map object.

 

I've tried to sign with debug key - getting the same thing. 


Does anybody have any ideas?

Thanks.


http://boonexpert.com
Quote · 23 May 2013

I would suggest to try to get Google API Key from here:

https://code.google.com/apis/console/

Rules → http://www.boonex.com/terms
Quote · 27 May 2013

 

I would suggest to try to get Google API Key from here:

https://code.google.com/apis/console/

 Alex, thanks for reply, but I already wrote that I signed it, used SHA1 and package name to generate the API 2.0 key


There's only one way to generate the Google API key and it is API Key v.2.0.

When I use old v.1 key generated long time ago, it works. But once I generate v.2 key - it doesn't, because new Google Maps API rules requires to include some new libraries, do a couple changes to Manifest file and some more stuff. Without it Google Maps will not work on Dolphin Android mobile app:

  • Maps are now encapsulated in the MapFragment class, an extension of Android's Fragment class. Now you can add a map as a piece of a larger Activity


https://developers.google.com/maps/documentation/android/v1/mapkey

 

Note: Version 1 of the Google Maps Android API has been officially deprecated as of December 3rd, 2012. This means that from March 18th, 2013 you will no longer be able to request an API key for this version. No new features will be added to Google Maps Android API v1. However, apps using v1 will continue to work on devices. Existing and new developers are encouraged to use Google Maps Android API v2.

http://boonexpert.com
Quote · 27 May 2013

Thank you for the info:

http://www.boonex.com/trac/dolphin/ticket/3214

Rules → http://www.boonex.com/terms
Quote · 28 May 2013

Instead of opening the new forum thread, I think using my old one will be more appropriate.

 

Now when all tickets related to Google Maps on mobile are marked as "solved", on the new app 1.8 I was never able to get Google Maps working as well as Facebook login. Everything seems to be done by manuals, but maps never shows.

When I requesting Key for Android apps on Google API panel, I use fingerprint and package name, let's say for example like this:

 

BB:0D:AC:74:D3:21:E1:43:67:71:9B:00:91:AF:A1:66:6E:44:5D:75;com.example.app

 

Then I copy API Key to appropriate place (app language key "google_maps_key"), maps doesn't work even if app is signed, uploaded to the market and installed from the market. Do I do anything wrong?

 

With FB login there are similar issue. Everything is filled correctly (as I can see) and it logs me in from the app, but then app pops with the word "Error" and nothing more: it stays on login screen, but FB button changes to "Logout". 

Please give me some advice, I was looking everywhere for a long time, can't figure it out...

Thank you!

http://boonexpert.com
Quote · 31 Aug 2013

"BB:0D:AC:74:D3:21:E1:43:67:71:9B:00:91:AF:A1:66:6E:44:5D:75;com.example.app" - this is not a key, key looks like upper case and lower case letters with some numbers, underscores and dashes.

You need to go to https://code.google.com/apis/console/

Then enable the following options in "Services" menu:

- Google Maps Android API v2

- Google Play Android Developer API

Then get Android Key in "API Access" menu, press "Create new Android Key..." button and follow instruction carefully.

 

Regarding Facebook:

https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/

some initial steps can be skipped

Rules → http://www.boonex.com/terms
Quote · 1 Sep 2013

Alex,

Please read carefully, I'm not this dumb :)

 

 I use fingerprint and package name

BB:0D:AC:74:D3:21:E1:43:67:71:9B:00:91:AF:A1:66:6E:44:5D:75;com.example.app

 

Then I copy API Key to appropriate place 


 

http://boonexpert.com
Quote · 1 Sep 2013

Anybody knows what could possibly go wrong with Google maps?

AlexT seems to not willing to give any advice except copypasting well-known links here.

http://boonexpert.com
Quote · 2 Sep 2013

It maybe you are generating keys for incorrect keystore file.

Please note that when compiling Android application locally eclipse uses debug.keystore file, which is created automatically, but when you are publishing it in production then specially generated custom.keystore file is used.

So you need to have two fingerprints and two google keys, to make it work locally and in production.

I have no other clues what can be wrong in your case.

Rules → http://www.boonex.com/terms
Quote · 9 Sep 2013

Alex,

Thank you for trying to help, but I'm working with apps for about 2 years and of course I know about debug keystore and how to choose correct keystore file. The app I'm talking about has been signed and published on Google Play, maps still doesn't work: empty screen with net and +\- buttons in the corner. all keys are correct and accepted by Google API system.

Facebook Connect also has a lot of headache to tune. You could put more log debug messages in the app so at least it will show more informative pop-ups on error case, not just "Exception: Error" and no errors in Log.

http://boonexpert.com
Quote · 9 Sep 2013

Hello All,

How to fix this ? 

Thanks for any reply.

Quote · 25 Feb 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.