Follow

Here's a neat iOS developer trick I just figured out:

If you use background fetch, save a ton of memory by not loading your real UI until didBecomeActive (use a splash screen instead). When a user opens the app, it'll load the UI, but if the system just wants to launch to refresh then shut down, it can save all that memory / work.

We cut memory usage during refreshes by about 60%

@PadraigOCinneide there is a similar situation if a watchOS app that call back to the main app for any reason and has to wake it up - can help that process go faster, too. Not that anyone makes watchOS apps anymore... 😛

@bigzaphod also CarPlay, handling interactive notifications, etc..

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!