3 ms·
Doesn’t mean your apps need to run in the background all the time. State restoration is a concept that has been present in Android/iOS from the beginning (or al
by pretext-1 3y ago
Doesn’t mean your apps need to run in the background all the time. State restoration is a concept that has been present in Android/iOS from the beginning (or almost) and many apps implement it successfully. This is not why the “Don’t kill my app” author wants to run in the background.
Also Android has ongoing notifications which let your app stay running forever and iOS introduced Live Activities in iOS 16 which can be used similarly (e.g. Instagram uses it to finish uploads in the background). But what the author of “Don’t kill my app” wants is to run in the background without making it obvious to the user, which many would consider malicious.
https://developer.apple.com/documentation/uikit/view_controllers/preserving_your_app_s_ui_across_launches/ https://developer.apple.com/documentation/uikit/view_control...
https://developer.android.com/topic/libraries/architecture/saving-states https://developer.android.com/topic/libraries/architecture/s...