- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All!
I regulary meet In Android 6 strange behaviour of geolocation plugin:
After device restart geolocation work normal, but after some hours plugin work like freezing - nor any done, nor any errors no any another activivties.
After restart device All is OK, but for no long time ......
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's me again:
I found on StackOverflow this trend:
The Question is:
How to correctly change plugin for removing bug in XDK?
or.... may be somebody can fork plugin ....
Youhhhh, can any help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Andrejes -- you can clone the plugin yourself to a local folder on your system and make the changes suggested in that SO post to experiment. Just add the plugin as a "local" plugin using the plugin management tool on the Projects tab. You can add any custom plugins you want using this technique.
See "importing third-part plugins" on this doc page > https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After deep investigation about this problem I found that:
- No stable working of navigator.geolocation object is veru old problem in Android ans iOS
- It's clear that problem is in Chrome ( Webkit)
- Problem start after Android 4.1 and later
- When this problem appear in Your device geolocation plugin and geolocation in maps.google.com in Chrome don't work
In same time navigator.geolocation in Firefox work fine
======================
Looks that need use another plugin w/o using navigator.geolocation :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Andrejs -- you can try the old intel.xdk geo plugin, it does not rely on the underlying webview navigator object. You'll find that plugin here > https://github.com/01org/cordova-plugin-intel-xdk-geolocation <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried this one ....
And intel.xdk. plugin also don't work as needed ;(
Plugin work/not work in same time as navigator.geolocation .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, this long-time problem has been resolved!
I strong recommended to al use for geolocation tasks this plugin:
cordova-plugin-locationservices-fix
=====================
to Intel XDK team:
may be it possible to change geolocation plugin to this one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Andrejes -- we provide easy access to the core Cordova plugins that are managed by the Apache Cordova team. We also provide an easy way for you to use any third-party Cordova plugin you want to use. We are not able to determine all the plugins that work and do not work, and which are best for your specific needs, thus the reason you are able to utilize any Cordova plugin in your app, you are not limited to the plugins we provide.
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page