D DickD Active Member Licensed User Jul 31, 2017 #1 I am trying to understand the IOS life cycle as it seems very different than android. On android a service would continue to run and send notifications to the user even if they left the app and decided to play candy crush or angry birds for a while. But in testing the conversion of my app to IOS it looks like once you leave the app (i.e. press HOME to start another app) the app is effectively dead until you relaunch it. Is this the case? Is there anything you can do to keep a background app running?
I am trying to understand the IOS life cycle as it seems very different than android. On android a service would continue to run and send notifications to the user even if they left the app and decided to play candy crush or angry birds for a while. But in testing the conversion of my app to IOS it looks like once you leave the app (i.e. press HOME to start another app) the app is effectively dead until you relaunch it. Is this the case? Is there anything you can do to keep a background app running?
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #2 There are specific things that you app can do in the background. You can receive push notifications while your app is in the background (or not running at all). Upvote 0
There are specific things that you app can do in the background. You can receive push notifications while your app is in the background (or not running at all).
D DickD Active Member Licensed User Aug 1, 2017 #3 Erel said: There are specific things that you app can do in the background. You can receive push notifications while your app is in the background (or not running at all). Click to expand... Not sure I understand that. If I'm reading section 7 of the Beginnger's Guide correctly then an app is killed shortly after going to the background. I assume that means pressing the home button. If the app was killed what can it do? Does this have something to do with Firebase (i.e. push notifications)? Upvote 0
Erel said: There are specific things that you app can do in the background. You can receive push notifications while your app is in the background (or not running at all). Click to expand... Not sure I understand that. If I'm reading section 7 of the Beginnger's Guide correctly then an app is killed shortly after going to the background. I assume that means pressing the home button. If the app was killed what can it do? Does this have something to do with Firebase (i.e. push notifications)?
Erel B4X founder Staff member Licensed User Longtime User Aug 1, 2017 #4 Push notifications is an OS feature. As I wrote it works when the app is not running. Other things that you can do in the background: https://www.b4x.com/search?query=b4i+background+fetch https://www.b4x.com/search?query=b4i+background+location Upvote 0
Push notifications is an OS feature. As I wrote it works when the app is not running. Other things that you can do in the background: https://www.b4x.com/search?query=b4i+background+fetch https://www.b4x.com/search?query=b4i+background+location
D DickD Active Member Licensed User Aug 1, 2017 #5 Erel said: Push notifications is an OS feature. As I wrote it works when the app is not running. Other things that you can do in the background: https://www.b4x.com/search?query=b4i background fetch https://www.b4x.com/search?query=b4i background location Click to expand... thanks, I will try this. Upvote 0
Erel said: Push notifications is an OS feature. As I wrote it works when the app is not running. Other things that you can do in the background: https://www.b4x.com/search?query=b4i background fetch https://www.b4x.com/search?query=b4i background location Click to expand... thanks, I will try this.