Software Archive
Read-only legacy content
17061 Discussions

App Preview geoLocation

Andrea_V_1
Beginner
612 Views
Hi, I have installed on my IPhone 5 "Intel App Preview", I try on demo apps "Geolocation demostration" but it remain blocked on "Determining Your Location" .... I have just enabled the use of the Position on device settings area. I have also tried the samething on Android device 'Motorola moto G' but is still the same !!! can someone help me ??? what i wrong Bye
0 Kudos
1 Solution
Jeroen_v_1
Novice
612 Views

changed version of geolocation to 03.11 and problem is solved. 

In debug and live it also works

 

View solution in original post

0 Kudos
9 Replies
Amrita_C_Intel
Employee
612 Views

Can you send screenshot? What is the app preview version?

 

0 Kudos
Andrea_V_1
Beginner
612 Views

hi

I don't know the version of the APP but is the last present on Apple Store (IOS) and Play Store (ANDROID).

0 Kudos
Anusha_M_Intel1
Employee
612 Views

Hi Andrea, 

I am going to check out the sample. In the meantime, can you try the Hello Cordova sample? It also has geolocation. You might have better luck there. 

0 Kudos
Jeroen_v_1
Novice
612 Views

Since a couple of days (don't know exactly) all my geolocations projects don't work anymore. 

I am working on a Mac with intel 3084

If you need more info, let me know. 

When i use a clean hello Cordova this is the result :

 

16:04:03.392 app.init.events(): entry
16:04:03.398 app.init.events(): [object Object]
16:04:03.399 acc.initAccel(): entry
16:04:03.400 acc.initAccel(): try succeeded.
16:04:03.400 acc.initAccel(): exit
16:04:03.400 acc.initCompass(): entry
16:04:03.400 acc.initCompass(): try succeeded.
16:04:03.400 acc.initCompass(): exit
16:04:03.401 geo.initGeoLocate(): entry
16:04:03.451 geo.initGeoLocate(): navigator try succeeded.
16:04:03.451 geo.initGeoLocate(): intel.xdk try failed: TypeError: Cannot read property 'clearWatch' of undefined
16:04:03.452 geo.initGeoLocate(): exit
16:04:03.452 app.updateDeviceInfo(): entry
16:04:03.452 app.updateDeviceInfo(): exit
16:04:03.453 app.init.debug(): entry
16:04:03.453 device.cordova: 3.6.0
16:04:03.453 device.model: Nexus 7
16:04:03.454 device.platform: Android
16:04:03.454 device.version: 4.x.x
16:04:03.454 window.Cordova typeof: object
16:04:03.454 cordova.version: 3.6.0
16:04:03.454 cordova.platformId: android
16:04:03.454 {}
16:04:03.455 app.init.debug(): exit
16:04:03.455 app.init.hideSplashScreen(): entry
16:04:03.455 app.init.hideSplashScreen(): exit
16:04:03.455 app.init.events(): exit
16:04:08.363 geo.btnGeo(): entry
16:04:08.389 geo.btnGeo(): btnGeo enabled.
16:04:08.389 geo.btnGeo(): exit
16:04:09.876 geo.btnGeo(): onFail
16:04:09.876 geo.btnGeo(): geoError(1): Illegal Access
16:04:17.837 geo.btnGeoFine(): entry
16:04:17.838 geo.locate(): entry
16:04:17.869 geo.locate(): exit
16:04:17.870 geo.btnGeoFine(): exit
16:04:19.100 geo.locate(): onFail
16:04:19.101 geo.locate(): geoError(1): Illegal Access
16:04:21.301 acc.btnCompass(): entry
16:04:21.301 acc.btnCompass(): btnCompass enabled.
16:04:21.301 acc.btnCompass(): exit
16:04:24.226 geo.btnGeoCoarse(): entry
16:04:24.227 geo.locate(): entry
16:04:24.257 geo.locate(): exit
16:04:24.258 geo.btnGeoCoarse(): exit
16:04:25.568 geo.locate(): onFail
16:04:25.569 geo.locate(): geoError(1): Illegal Access
16:04:30.651 acc.btnAccel(): entry
16:04:30.652 acc.btnAccel(): btnAccel enabled.
16:04:30.652 acc.btnAccel(): exit
16:04:35.205 geo.btnGeoFine(): entry
16:04:35.206 geo.locate(): entry
16:04:35.230 geo.locate(): exit
16:04:35.230 geo.btnGeoFine(): exit
16:04:37.650 geo.locate(): onFail
16:04:37.651 geo.locate(): geoError(1): Illegal Access

0 Kudos
PaulF_IntelCorp
Employee
612 Views

Are you running this is the Emulate tab or in App Preview or in a built app? Based on the log messages, I'm guessing you are doing this in the Emulate tab. Try this in the Debug tab, do you get the same results?

0 Kudos
Jeroen_v_1
Novice
612 Views

In debug tab the app is running normally and showing GPS. 

Couple of weeks ago, the emulator tab also worked.  I used the geo location toolbar to test my app. 

Do you know why this is not working anymore? or is there a workaround?

 

 

 

0 Kudos
PaulF_IntelCorp
Employee
612 Views

I do not know why this is not working in the Emulate tab. We'll have to look into it. As a workaround, I recommend using the Debug tab, it will provide a much more accurate run and debug environment than the Emulate tab, especially when dealing with real device features, like geo.

0 Kudos
Jeroen_v_1
Novice
613 Views

changed version of geolocation to 03.11 and problem is solved. 

In debug and live it also works

 

0 Kudos
Amrita_C_Intel
Employee
612 Views

I am glad it is working for you

0 Kudos
Reply