Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It’s perfectly feasible to write a location tracking application using phonegap and have it a) work in a performant manner on low spec android phones and b) keep the app running in the background when the phone is in standby mode.</p> <p>To keep the app running in the background on android, it’s necessary to acquire a partial wakelock (see <a href="http://developer.android.com/reference/android/os/PowerManager.html" rel="nofollow">android powermanager</a>). In phonegap, you need to use a plugin to achieve this. On the plus side, there’s an <a href="https://github.com/phonegap/phonegap-plugins/tree/master/Android/PowerManagement" rel="nofollow">existing phonegap plugin</a> to do this. The downside is that in order to use a custom plugin, you will not be able to use the convenient <a href="https://build.phonegap.com/" rel="nofollow">phonegap build</a> method to build your app, so will need to do the manual process via the Eclipse IDE, but this is not a great hassle to set up (see <a href="http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html" rel="nofollow">here</a>).</p> <p>In terms of your app getting closed because of android running out of memory, and also having it perform responsively on cheap, low spec devices, this won’t be a problem so long as you are careful to write your javascript code in an optimal way. I’ve implemented a location tracking app using phonegap which uses custom maps and in testing on older android devices including HTC Desire and HTC Wildfire, performance was acceptable and the partial wakelock worked - I had no problems with the app getting closed because of lack of memory. </p> <p>I chose phonegap over native because I’m a web developer so Javascript is more convenient for me than having to start from scratch with Java and the android SDK, and also because I was able to use the same JS code base with appropriate plugins to produce the same app for iOS. Phonegap is able to access GPS hardware on the device and in testing outside I found the average accuracy to be between 4 to 8 metres depending on the device. Hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload