I want to build a Geolocation App with Intel-XDK (HTML5-Cordova). The Intel-XDK provides a Google Maps Widget which can be used to display a map.
The widget works properly in the Intel-XDK emulator or in the "Intel App Preview" on my Device (Android 4.4). If i build the App and install the .apk on my device the map doesn't display. I figured out that the "window.google" object is undefined. In the Intel App Preview and the Emulator of Intel-XDK the object is defined.
Whats wrong with the build?
You can reproduce this by creating a new Intel-XDK Cordova Project and place the Google Map Widget on your home screen.
Update
Solution: Adding a "*" in the Domain list under Project Settings -> Build Settings -> Android -> Domain list.
Explanation: Cordova use a "Domain whitelisting security model" which controls applications access to external domains. More info: Whitelist Guide
Thanks to krisrak for the hint!