GithubHelp home page GithubHelp logo

Comments (13)

msyahidin avatar msyahidin commented on May 22, 2024 1

after read carefully here, maybe this is the cause.

https://docs.google.com/presentation/d/1zlkmoSY4AzDJc_P4IqWLnzct41IqHyzGkLeyhlAxMDE/edit#slide=id.g39c2af405f_841_328

Even if you don’t register your payment after the grace period, Google Map in your app would be gray map or something. (I confirmed to Google)

will try it this afternoon or tomorrow
can we get a callback or error code to identified it?

from ionic-native-google-maps.

mesutcakir avatar mesutcakir commented on May 22, 2024 1

I was working yesterday.

ionic cordova plugin rm cordova-plugin-googlemaps
ionic cordova platforms rm android

ionic cordova plugin add cordova-plugin-googlemaps
ionic cordova platforms add android

it worked fine.

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

Regenerate api key, then retry step4.

from ionic-native-google-maps.

msyahidin avatar msyahidin commented on May 22, 2024

me too
dont work even with new key, grey box with google logo but no map loaded

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

Gray map means your api key doesn't allow to use Google maps api or your app fingerprint is mismatch with restrictions. This is not bug, it's YOUR problem. Make sure everything.

from ionic-native-google-maps.

moscarar avatar moscarar commented on May 22, 2024

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

Even after regenerating api key, I recommend you give up this plugin, and you use Google Maps JavaScript v3.

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

ping

from ionic-native-google-maps.

msyahidin avatar msyahidin commented on May 22, 2024

added billing account
add SHA-1 certificate fingerprint
generate new key
check the api enabled

remove plugin
remove platform
add plugin and platform with new key, still not work

even test it on blank new project. not work still grey
i hope there is some error code show

please suggest me, what should i check again?

btw this is happen when updated to latest version, maybe last choice between downgrade or change to agm

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

Remove the fingerprint.

from ionic-native-google-maps.

moscarar avatar moscarar commented on May 22, 2024

from ionic-native-google-maps.

msyahidin avatar msyahidin commented on May 22, 2024

I have found the problem,

just like @wf9a5m75 said before, it's because wrong API Key, but not the Key it self wrong.
I am sure inserted the right key.
But the documentation on page this slide https://docs.google.com/presentation/d/1zlkmoSY4AzDJc_P4IqWLnzct41IqHyzGkLeyhlAxMDE/edit#slide=id.g282d0a7bfd_0_107
THIS IS WRONG (DO NOT COPY FROM THERE)
$> ionic cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=”.....” --variable API_KEY_FOR_IOS=”.....”

it contain wrong cli format or typo on double quote, it's not quote but like apostrophe.
If you copy the command to the terminal then insert the key, the command will produce this line on config.xml :
<variable name="API_KEY_FOR_ANDROID" value="”KEY”" />

package.json:

"cordova-plugin-googlemaps": {
"API_KEY_FOR_ANDROID": "”ANDROID_KEY”",
"API_KEY_FOR_IOS": "”IOS_KEY”",
"PLAY_SERVICES_VERSION": "15.0.1",
"ANDROID_SUPPORT_V4_VERSION": "26.1.0",
"LOCATION_WHEN_IN_USE_DESCRIPTION": "This app wants to get your location while this app runs only.",
"LOCATION_ALWAYS_USAGE_DESCRIPTION": "This app wants to get your location always, even this app runs in background."
}

And then make your API Key wrong.
Hope the ionic team fix the typo cli command on the documentation. Btw it's nice docs.

@moscarar are you following the documentation in google docs? check your package.json and config.xml, is it the right key?

  1. remove plugin
  2. remove platform
  3. add plugin with the right command (make sure it's NOT apostrophe)
  4. add platform

from ionic-native-google-maps.

wf9a5m75 avatar wf9a5m75 commented on May 22, 2024

I believe general programmer understand <variable name="API_KEY_FOR_ANDROID" value="”KEY”" /> is wrong without thinking.

Anyway, congrats.

from ionic-native-google-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.