Page 1 of 1

Run Location services / GPS in background while app is running

Posted: Thu Aug 20, 2015 4:45 am
by Tooba Atif

I have an issue with my app!!
Here it goes

The app is using iframe to load the webpage into appery and run the GPS location fine but in that way app is very very slow (it takes a while to click on the text box and cursor is also behaving strange on phone) and we have compatibility issues with different phones and ipad (the app works a bit better on ipad)

So, to resolve this compatibility issue em thinking of not using iframe and just use Navigate to link on page show to show the webpage and in that case i still want to run the GPS in background..

If I open some other app and my app goes to background then I still want it to send the location to the server while the app is running in background.

Currently its only sending gps info to server when the app is open and not in background.

Is there a way to do it?


Run Location services / GPS in background while app is running

Posted: Thu Aug 20, 2015 11:34 am
by Evgene Karachevtsev

Hello Tooba,

This is very nontrivial task. You should search and use some phonegap plugin for this, but the problem is that all plugins that we've tested for working in background are unstable and work differently for ios and android.


Run Location services / GPS in background while app is running

Posted: Wed Sep 21, 2016 1:58 pm
by Tooba Atif

hi there,

Have you got any solution for this now?

I need to send background location to server for android device!


Run Location services / GPS in background while app is running

Posted: Wed Sep 21, 2016 7:04 pm
by Evgene Karachevtsev

Hello Tooba,

The situation remains the same. You should use some custom plugin for this goal. But perhaps this post may be useful for you: https://blog.appery.io/2015/12/how-to...


Run Location services / GPS in background while app is running

Posted: Sat Sep 24, 2016 2:45 pm
by Tooba Atif

Thanks.
Does this works for android?


Run Location services / GPS in background while app is running

Posted: Sun Sep 25, 2016 8:55 am
by Serhii Kulibaba

Hello,

Yes, it has to work on the Android device


Run Location services / GPS in background while app is running

Posted: Mon Sep 26, 2016 3:10 pm
by Tooba Atif

i have followed the above tutorial and done all steps exactly but its not working on my android phone! App works fine on front end but doesn't work on background..


Run Location services / GPS in background while app is running

Posted: Tue Sep 27, 2016 11:34 am
by Serhii Kulibaba

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).