Google recently started to require having a map key to access the Google maps API. According to the docs, this is how it should look in config.lua:
license = { google = { key = "[my google iap key]", mapsKey = "[my google maps key]", } }
“key” is for Google IAP and “mapsKey” is for the maps. However, I get an error message when running the app on Android. This is what Google support says:
It looks like you are having issues adding the API key to the JavaScript Map request, so it does not authenticate under your project. If you are not able to add an API key in your Map request, or you have an invalid character in your request (like a space or when URL encoded, it could be a plus sign (+), or any special character), or you accidentally added an extra character or deleted a portion of the key, you will have an error for invalid key. The error will result to a grey map with “Oops! ----” message.
Is there a way for you to log the full URL request that your application is sending?
Google support has confirmed the validity of my key and I have double checked that the key is entered correctly in config.lua. My questions:
- I have checked the NativeDisplayObjects sample app and it is the same thing there. Does it for for anyone else?
- How could I see the url that is sent from my device to google maps? I cannot find it in the logfile of the device…