N Nicolás Cieri Active Member Licensed User Jul 23, 2020 #1 Hi, What is the best way to start an application in the background without being started directly by the user or despite being closed by the user? Silent Notification works for 30 seconds, is there a way to restart within that process the 30 seconds ?, to make sure it is active ?. Or would I have to send a silent notification from my server every 30 seconds? In Android you can program it to start by itself, but in iOS? Thanks a lot.
Hi, What is the best way to start an application in the background without being started directly by the user or despite being closed by the user? Silent Notification works for 30 seconds, is there a way to restart within that process the 30 seconds ?, to make sure it is active ?. Or would I have to send a silent notification from my server every 30 seconds? In Android you can program it to start by itself, but in iOS? Thanks a lot.
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2020 #2 Nicolás Cieri said: Or would I have to send a silent notification from my server every 30 seconds? Click to expand... This will not work. With a few exception, you cannot run your app in the background. What are you trying to do? Upvote 0
Nicolás Cieri said: Or would I have to send a silent notification from my server every 30 seconds? Click to expand... This will not work. With a few exception, you cannot run your app in the background. What are you trying to do?
N Nicolás Cieri Active Member Licensed User Jul 24, 2020 #3 I need to do an app for tracking location all the time, it's working well, but.. if the user swipe (close) my app, i can restart it. I tried with a silent notifications (firebase), but if the app was closed by the user, the silent notifications doesn't work. If the app is opened (foreground or background), this work perfect. But the problem is restart the app if the user close it or the phone is restarted. Upvote 0
I need to do an app for tracking location all the time, it's working well, but.. if the user swipe (close) my app, i can restart it. I tried with a silent notifications (firebase), but if the app was closed by the user, the silent notifications doesn't work. If the app is opened (foreground or background), this work perfect. But the problem is restart the app if the user close it or the phone is restarted.
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2020 #4 Background location: https://www.b4x.com/android/forum/threads/background-location-tracking.50246/ You cannot do anything if the user kills the app. Upvote 0
Background location: https://www.b4x.com/android/forum/threads/background-location-tracking.50246/ You cannot do anything if the user kills the app.