ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

Mapa no carga #113

Closed JeanRoldanDev closed 5 years ago

JeanRoldanDev commented 5 years ago

Estoy usando @ionic-native/google-maps4.8.0 cordova-plugin-googlemaps@2.3.11

image

He agregado el css segun lo identifica algunos stack pero aun así no funciona

image

Por favor, ayuda

wf9a5m75 commented 5 years ago

Please write your description in English.

By the way, gray map means your API KEY problem always. https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/troubleshootings/graymap/README.md

JeanRoldanDev commented 5 years ago

if I have read, but the api key is well generated and does not show any console error image

config.xml image image

package.json image

console image

wf9a5m75 commented 5 years ago

Did you enable Google Maps SDK for Android before generating api key?

JeanRoldanDev commented 5 years ago

yes

wf9a5m75 commented 5 years ago

Then did you check logcat message?

JeanRoldanDev commented 5 years ago

yes, and it does not show any error

image

wf9a5m75 commented 5 years ago

That's a build log, not logcat.

wf9a5m75 commented 5 years ago

Share your APK file, I show you.

JeanRoldanDev commented 5 years ago

what command is for the abd logcat?

app-debug.zip

wf9a5m75 commented 5 years ago

adb logcat shows native runtime log of Android system.

console.log displays just javascript messages.

10-26 10:52:04.535  6649  6785 E Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
10-26 10:52:04.539  6649  6785 E Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
10-26 10:52:04.539  6649  6785 E Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled.
10-26 10:52:04.539  6649  6785 E Google Maps Android API: Ensure that the following Android Key exists:
10-26 10:52:04.539  6649  6785 E Google Maps Android API:   API Key: AIzaSyDJWq92dxEU8S_Nf3lLQ_8GDJt3sZhTyA8
10-26 10:52:04.539  6649  6785 E Google Maps Android API:   Android Application (<cert_fingerprint>;<package_name>): 47:2A:A0:50:CB:2E:73:FF:1F:C6:11:E1:61:F9:5B:81:7C:F9:2C:91;com.anuncio.like

screen shot 2018-10-26 at 10 53 35 am

JeanRoldanDev commented 5 years ago

execute the command adb logcat com.anuncio.like *:E

and indeed image

generate a new key image

then remove the plugin and the dependency i install everything again and.... bummm image

¿what is the correct way to generate the SHA-1 certificate fingerprint, for production? image

wf9a5m75 commented 5 years ago

https://developers.google.com/maps/documentation/android-sdk/signup

JeanRoldanDev commented 5 years ago

A thousand thanks, the problem was in the key