[OpenLayers-Users] Openlayers Phonegap Build and iOS

ANC anajera at bicimapas.com.mx
Fri Jun 6 15:19:42 PDT 2014


Hello

I have developed a Phonegap Build application using Openlayers. One of the
app features is to track the user position using the Geolocation Watch
method and plot it on top of a map image from our WMS server.   The map
interfase has a toggle button that starts/stops the tracking function. The
stop function performs two actions:

Stops the Geolocation Watch method
Saves the plotted track to localstorage for further use within the app.

One key feature of this app is that it shall continue plotting the user's
position even if the device goes into auto-lock (for battery saving) or in
the background when other apps are used such as the phone.

The app was originally deployed in Android devices and works very well.  We
have had it working for long periods of time (3 to 5 continuous hours) in
auto-lock mode and when finishing the activity, the plot is always showing
the current position and the tracklog is saved as expected. No issues at all
in Android.

Then it was compiled for iOS after adding the required permissions to run
the geolocation and the app in background mode. iOS is more restrictive than
Android in this aspect. But several performance issues have shown in iOS
that do not happen in Android. Some are Phonegap specific but others are
related to Openlayers, mainly with the toggle button. When it is pressed to
stop the tracking,  it takes a long time (maybe 5 to 10 seconds) to actually
stop and the tracklog saving feature does not get activated. Also, the
tracking toggle button will get reactivated by touching any part of the map
div. And when unlocking the device, the tracking function does not run
smoothly. I have other buttons (normal, not toggle) that work well. One of
them is used for a single geolocation request (getposition method) and
another stores the map tiles in the screen view in a websql database. Both
work well, the problem seems to be just with the toggle button. 

So, this performance makes me wonder whether there may be issues among
Openlayers (2.13.1) and iOS.  

Are there any recommendations or guidelines for optimized performance of
Openlayers in an iOS app created with phonegap?  Any experiences or advice?

Thanks in advance for any help. 





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Openlayers-Phonegap-Build-and-iOS-tp5144532.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list