Low Power Mode and thermal state
How can an app find out that the user turned on Low Power Mode or that the device has gotten hot?
How can an app find out that the user turned on Low Power Mode or that the device has gotten hot?
Both signals live on ProcessInfo. Read Low Power Mode with isLowPowerModeEnabled and heat with thermalState (nominal, fair, serious, critical), and take later changes from the power state and thermal state change notifications rather than polling.
Performance and debuggingShort answerBasics
A phone screen question: "When you design an iOS app, what do you keep in mind to use…
#battery #energy
Performance and debuggingShort answerAdvanced
Map and navigation apps use a lot of battery. How would you design one to minimize…
#battery #energy
iOS system designShort answerAdvanced
Design a portfolio and watchlist screen where hundreds of symbols change price dozens of…
#battery
iOS system designShort answerAdvanced
You're adding an online/offline/last seen indicator to a contact list. Given that the app…
#battery