Hello,
I am trying to add some logging for Thermal State Changes in my iOS app. I have followed the instructions outlined in this documentation - https://developer.apple.com/library/archive/documentation/Performance/Conceptual/power_efficiency_guidelines_osx/RespondToThermalStateChanges.html, however I am not recieving the notifications for thermal state change.
I know I have set the code up correctly because I have switched NSProcessInfoThermalStateDidChangeNotification out for NSProcessInfoPowerStateDidChange and my code runs as expected.
I have tried enabling various thermal device conditions via Xcode
heating up the actual device until I received the tempurature notification then allowing the device to cool back down while using my app
I am testing on iPhone XR - iOS 13.6.1
Topic:
App & System Services
SubTopic:
General
Tags:
iPhone
Notification Center
Objective-C
Foundation