Questions regarding the lifecycle of iOS apps (e.g. when are applicationDidBecomeActive or applicationWillTerminate called, or when is the best time to do certain initialisations or actions).
Questions tagged [ios-lifecycle]
33 questions
0
votes
2 answers
Where in my iOS (Swift) application lifecycle should i fetch all my data from firebase?
User may not interact with my app, until all data is fetched from firebase. So my newbie plan so far is:
Start spinner
Fetch data from firebase (async)
When step 2 async job is completed, then hide spinner
My first thoughts as a newbie is often…

yusuf tezel
- 1,232
- 13
- 18
0
votes
1 answer
How to execute a method when user quit iOS application (Swift)?
I've been building iOS Music application and
I'm using MPMusicPlayerController.systemMusicPlayer() to play music from the iTunes library of the device.
I tried applicationWillTerminate to stop the music player, and It didn't work, after doing some…

Poorna
- 133
- 2
- 7
-2
votes
1 answer
Does suspended state exist in Android?
In iOS if user press home button, app will move to suspended state. Double click of the home button, suspended apps appear, and selecting an app will bring back it to active state.
How is it by Android? App can become to suspended state pressing…

János
- 32,867
- 38
- 193
- 353