On the google api credentials page, it allows you to restrict to only apps that meet the criteria for my app so that nobody else can steal my key and rack up thousands of dollars of map fees.
I currently have capacitor://myApp as the allowed domain, and this seems to work fine on iOS, but not Android. If I remove all the restrictions, it works fine on Android and iOS, so it appears to be a problem with the url not matching.
What url is android using?
Android uses: http://myApp
You can set this in the Capacitor config file what scheme and host name you want your app to use, but also, anyone can do the same, so it’s not really a great way to secure your Google keys. Specifically for this case, this is a big reason you would want to use a native library where possible.
We do have the Google Map plugin that would handle this for you, though I’m also aware that it doesn’t cover the fully maps API at this time, which may make it not quite what you need (though if this is the case, we’d love feedback and feature requests!)
I use predictive address search and route optimization for my maps. Does the capacitor plugin have those?
Also, what setting do I change in the config file for the host name?