Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Davide_G_
Beginner
46 Views

debug mode importing external javascript failed

Intel xdk 2893 installed on windows 10 PC

Smartphone used for test: Samsung galaxy s3 with android 4.3

 

IN ENGLISH

 

I'm testing the exhample included in Intel sdk the "geolocation-sample": https://software.intel.com/en-us/xdk/article/intel-xdk-geolocation-sample

when I upload it to the server(using the test tab) and then I run into my sansung galaxy S3 by using the "intel app preview" work perfeclty.

But if I try to use in debug mode I get this javascript error and the app won' t work

Failed to load resource: the server responded with a status of 404 (Not Found)     http://maps.google.com/maps/api/js?sensor=false

Thank you,

Davide

 

IN ITALIAN

Buongiorno a tutti sto testando l' esempio di geolocalizzazione incluso in intel sdk ho riscontrato alcuni problemi:https://software.intel.com/en-us/xdk/article/intel-xdk-geolocation-sample

In pratica se uso il tab "TEST" e carico il file sui vostri server e poi lo eseguo sul cellulare tramite "intel app preview" funziona perfettamente.

Mentre provo ad eseguire il debug mode non riesce a caricare il file esterno di google maps mi restituisce questo errore:

Failed to load resource: the server responded with a status of 404 (Not Found)     http://maps.google.com/maps/api/js?sensor=false

Grazie,

Saluti Davide

Tags (2)
0 Kudos
2 Replies
Elroy_A_Intel
Employee
46 Views

This appears to be an issue with you application's ability to access the following URL at http://maps.google.com/maps/api/js?sensor=false. Have you tried to evaluate your application with the Debug tab and the Build tab with the Android build target as well as Crosswalk for Android?

Davide_G_
Beginner
46 Views

Hi, If I build the app (both android or android crosswalk). The map don' t load correctly but load only the map button.

I also tried to add in whitelist(with no results) maps.google.com, http://maps.google.com/ and http://maps.google.com/*

In attachement all the project

recapping:

- In emulate and using the test "tab" to push the file and open the app via app preview work perfectly

- In debug "tab" i have the error to load google.maps.com and I saw on the screen of the smartphone only the message "Determining Your Location"

- If I build the app both crosswalnk or android I saw on the screen an empty google maps with only the control.

Thank you very much

Davide

 

Reply