Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Run Location services / GPS in background while app is running

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Run Location services / GPS in background while app is running

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.

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Run Location services / GPS in background while app is running

hi there,

Have you got any solution for this now?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Run Location services / GPS in background while app is running

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...

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Run Location services / GPS in background while app is running

Thanks.
Does this works for android?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Run Location services / GPS in background while app is running

Hello,

Yes, it has to work on the Android device

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Run Location services / GPS in background while app is running

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..

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Run Location services / GPS in background while app is running

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).

Return to “Issues”