Glitch with Google Maps API & AIR on Windows

I was trying to learn Script Bridging with a tutorial on labs.adobe.com. The tutorial shows an example with Google Maps API and using the HTML component in AIR to interact between the AS & JS parts of the App. Pretty interesting.

What was more interesting was an error that I encountered during the development of the App… While running the app with the API key duly filled in, it generated the following error…

“Google Maps API key used on this website was registered for a different website”

What was even more puzzling was that i could run the HTML alright (with the Maps) in the browser from a local html file. Did some poking around and found that this was a known issue with AIR on Windows (it works fine on the MAC) and is being tracked… Check out the details here…

The short answer is as of now you’ll have to deploy the app on a web-server. Here is the source code of the AIR app

Application Source

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s