3 ms·
Many app need to keep state while they are in background though. Imagine your browswer tabs reloading every time you swotch to a different app and back.
by sebtron 3y ago
Many app need to keep state while they are in background though. Imagine your browswer tabs reloading every time you swotch to a different app and back.
- pretext-1 3y agoDoesn’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...
- guappa 3y agoYou can… save a file?