Watching the ThermalState of iPhone and notify the user

I'm not very familiar with iOS development and I've a question for an use case that I want to implement and would like to get your feedback or input regarding the feasibility of the idea.

I basically want to use/watch all the time the ThermalState of an iPhone XR and want to notify via audio signals or notification or any other visuell signal if the State of the device is serious or critical. This App should run all the time.
  • Is this use case possible to implement also regarding passing the approval of AppStore?

  • Could I run an application that is started automatically after a reboot of a iPhone (kind of a system app)?

  • Are there any better API to look for the state of an ios/iphone device in particular for battery state?


background: I want to notify the a special user (engineer in a manufacture industry) when his iPhone is getting too hot (in particular: battery) in a special area where he isn't allowed to enter or should leave the area.

Is this use case possible to implement … ?

No. While it’s possible to monitor the thermal state of the phone programmatically, to achieve your goal you’d need your app to run continuously in the background. iOS does not allow apps to do that. Rather, background execution is limited to specific background modes and there’s no background mode for handling thermal events.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
@eskimo thanks for the input. Is there any other options to observe the heat progression of the device or battery in particular? How would I signal the user of my app that he should take some actions if the a threshold (defined by me) is reached. This observation need to be taken continuous

Is there any other options to observe the heat progression of the
device or battery in particular?

No.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Watching the ThermalState of iPhone and notify the user
 
 
Q