Delphi FireMonkey MapView show only blank map - android

I'm building Android application which using TMapView component.
I inspiring by this article Working with TMapView ...
I do this steps:
Collect API key in Google Developer console
Allow Map service Entitlement List
Put API Key on field in version info card
Allow Access network state
But in my application shown only blank map (gray square with google logo and +- zoom buttons)
MapView.MapType I tried Normall,Terrain, ... but it is same
Where can be a problem ?

You need to configure at Google Developer Console your Debug and Release certificate fingerprint.
This article teaches you to get and configure the fingerprints: Configuring Android Applications to Use Google Maps
You can see at the image that I have some fingerprints configured, that's because we have more than one developer that compiles the project.

Fixed now.
I have bad package name for debug certificate. I use com.embarcadero.MyAppName but correct package name is same as in Realse but there is different SHA-1 key

I have the same problem , i have solved it ..
I find that my APP's build setting is wrong,
when i change :
Target Platforms (Android)->Android - Android SDK 24.x.x.x 32bit ->Configuration->Development
To: XXXXXX->Configuration->"Application Store", then google map is OK..
of course, Provisioning of my project options ,Build Type: Android - Application Store , KeyStore File is the keystore i had created.

Related

Google GMail API Access Not Configured Via Android App

I am trying to follow
https://developers.google.com/gmail/api/quickstart/android
To get talking to the GMail API for Google Play.
I have created my project, my credential using the SHA1 from my debug.keystore file. I have double checked the package name is correctly matching. I have verified that Android studio is signing w/ the debug.keystore. I am still getting Access Not Configured when trying to run the example code. Does anyone have any ideas?
I guess, if you have ended up following the documentation, the issue could be:
The build.gradle file in the app module, there, the package name would should point to a different one and not yours. Cross check.
Also try adding couple of other APIs as well, like Contacts and Google+ APIs in console.
It is working for me!

Android Studio - using Google Maps API's key by multiple developers

I'm dealing with an strange issue. I've followed multiple threads from forums here and nothing helped.
We are developing an Android application where we use Google Maps API v2. We are using Android Studio.
My collegue has registered our project on Google Developers Console, activated Google Maps API for the project and created new public key for the application. Then he registered that key in our AndroidManifest.xml file:
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="OUR_KEY_VALUE" />
and it works perfectly fine for him when he debugs the application in Android Studio on his mobile.
The problem is that I have the same source code as he has and when I debug or run our app on my mobile phone, the map we are using is blank and is not showing the map.
Interesting thing is that if my collegue send me the app-debug.apk file generated during Android Studio's build and I install it everything work ok and the map is there. Also when this .apk file is installed on different phones it works fine.
When I generate the app-debug.apk file using Android Studio and try to install it on my phone, map is not showing.
We even created the release key for our app and it works exactly the same.
What could be the cause that we both cannot debug the application working with the same API's key?
Thanks for your help!
You must register all keys of all of your team members. Google API Console allows to put many packages/keys per Google Maps Key. Just ask all members for their debug certificate and add new entry <PRINT>:<PACKAGE ID> per each developer. It's not true that all devs must share debug certificate. This is wrong! You need just to register each of your devs with the Google API console. That way you can easily disable developer access if i.e. he leave the company.
For future users:
The debug/release keystore used to generate Google API Key must be the same when you debug/run your app.

Android - Google Maps doesn't display within my application except in debugging mode

The issue I am having is one that is mirrored in many other threads with one minor difference. I am getting this screen whenever I install the apk file received via export a signed application:
I have followed every one of the following stackoverflow references, but alas, nothing has helped:
-Google Maps API V2 - always get authentication error
-Google Maps Android API v2 Authorization failure
-Google Map Android Api V2 Sample Code not working
-Android - Google Map doesn't display
The issue is, that my map displays PERFECTLY when I am running it to the attached android phone I have plugged into my computer for debugging purposes, but when I export the apk file and install that (after uninstalling the prior of course), it does not work.
Is there any reason why my application would work while my debugged phone is connected and the application is 'run' while said phone is attached but not when I export the apk file, and install it that way?
Thanks in advance for the help!
You need a separate api key for your release mode. Its the same as in debug mode but you need to export the apk file again.
I am assuming that you either forgot to change your API key to the release key on your manifest before generating the apk or that you have the wrong release SHA1 signature to begin with. Make sure that you are using the correct API key and/or that your SHA1 release signature is correct.

Google Maps Android — Map no longer display after keystore change

I had a working google maps v2 application, but due to certain circumstances, I had to change my debug keystore.
I have, of course, added the new SHA-1 fingerprint to the allowed Android device list in my Google API account.
The map no longer displays, only the zoom and center buttons on a grey background appear.
The following errors pop in ADB logs :
05-21 18:11:42.903: I/Google Maps Android API(15747): Failed to contact Google servers. Another attempt will be made when connectivity is established.
05-21 18:11:43.093: E/Google Maps Android API(15747): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
I have browsed several similar questions here on stackoverflow, but none seem to solve my own problem.
Here is what I have done/checked :
Add the new SHA-1 fingerprint to my original API key allowed Android devices
Create a new API key with the new SHA-1 fingerprint
Clear application data according to this post
Uninstall and install application again
Install on a brand new device
Check, double check and update Google Play library dependency
Check that "Google Maps Android API v2" service is enabled in my Google API account
I'd like to add that my old application version with the original debug keystore still works correctly.
Any help is appreciated.
Thanks !
I had the same issue..
Set your new key on manifest.
Disable automatic build in your IDE.
Delete all resources on your project bin folder.
Clean project.
Build this.
I'ts worked for me.
Give a try.
I noticed when i changed my debug key that it took a few hours for the new key to function properly.
I had a similar problem and spent a ton of time trying to fix it. Try this:
Rename your debug.keystore file and then do a clean, and then build. this will generate a new debug.keystore. and a new SHA1 fingerprint. Plug that new fingerprint into the api console and try again.
The other thing you can check is to look at the "reports" section of the api console for the project you are trying to access the api from. If you have tried to run your project and have no traffic for that api, chances are either the SHA1 fingerprint or the package name you gave is wrong. In my case it was the fingerprint.

Importing existing Android project from github that uses Google Maps API, Google Authentication fails

I'm new to using github, but I am somewhat positive I have it configured in eclipse properly.
I'm also new to using the Google Maps API. However, the other people working on the project already have it configured with the API key and it works for them.
In my case, however:
The project successfully imports. When I run the app on my nexus 7 through eclipse, the app runs.
When the google maps api is called, the map opens but it without any map data (blank).
The console is showing a Google Authentication error.
Do I have to use my own API key?
Thanks
Assuming the API key is hardcoded in the AndroidManifest.xml in the project: ask one of the others developers to give you debug keystore from their ~/.android/ (C:\Users\somename\.android\ on Windows) folder and put it in the same location on your machine.

Categories

Resources