- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
changed version of geolocation to 03.11 and problem is solved.
In debug and live it also works
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you send screenshot? What is the app preview version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
changed version of geolocation to 03.11 and problem is solved.
In debug and live it also works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am glad it is working for you

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page