Google maps, API key for file:///

I have problem with API keys for Google Maps, which should be restricted for domain (

Does anyone tried to solve problem with something like: file:///var/containers/Bundle/Application/2B1307E3-34E7-412F-9229-8CFEC75C0118/, which calls with key parameter?

It seems there is no option how to write down wildcard like file:///*, / etc.

The response to JS console is still:
ERROR: Google Maps API error: RefererNotAllowedMapError
Your site URL to be authorized: file:///var/containers/Bundle/Application/B180BD69-1025-4E43-9AF4-8C4528F6E4FB/

There is a option for iOS key (and Android key) besides Browser key which I use, but iOS key is not compatible with Cordova app, there is different app file structure. Browser key has to be used.

same problem for me, i have to wildcar everything, but that druty …

i am also getting the same error.

Did you find any solution for the same.

Found solution, not fully implemented yet, but this should works even better then Javascript API:

And if you use side menu: Using google maps cordova plugin, this solution works.