Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bogdanw

macrumors 603
Original poster
Mar 10, 2009
6,099
3,011
It’s summer, sometimes my iPhone SE 2 (iOS 16.6) gets hot and I would like to know how hot.
All the apps I’ve tried just say “nominal”, not the temperature.
This ZDNET article “So, how exactly do you tell how hot your iPhone is?” (July 19, 2022)https://www.zdnet.com/article/so-how-exactly-do-you-tell-how-hot-your-iphone-is/ recommends Battery and charger test https://apps.apple.com/app/battery-and-charger-test/id1442110910 but the app always displays 26 degrees Celsius.

So far, the only way to tell the temperature of the iPhone’s battery is to connect it to a Mac and read it from coconutBattery https://www.coconut-flavour.com/coconutbattery/

Are there any apps for iOS that can tell the temperature of the battery/device in degrees?
Has Apple restricted this information and making such apps is no longer possible?
 

bogdanw

macrumors 603
Original poster
Mar 10, 2009
6,099
3,011
The summer is over, maybe I’ll get a definitive answer until next summer :)

From what I could find in Apple’s documentation and old utilities, battery temperature was available 7 years ago, but it’s no longer readable through the same API.
UIDeviceListener
https://github.com/eldade/UIDeviceListener
“What kind of power data can I get? ...Current battery temperature”
UIDevice.BatteryState
https://developer.apple.com/documentation/uikit/uidevice/batterystate
ProcessInfo.ThermalState: nominal, case fair, case serious, case critical
https://developer.apple.com/documentation/foundation/processinfo/thermalstate

Maybe a developer could offer some clarifications on how coconutBattery is getting the temperature of the battery.
 

casperes1996

macrumors 604
Jan 26, 2014
7,593
5,764
Horsens, Denmark
Hi!
To the best of my knowledge there is no public api for getting the temperature from any of the thermal sensors other than the overall thermal state as one of the enumerated cases you list, where nominal is everything operating at normal. No throttling of any sort.
Coconut battery is probably using private apis or something if it can get the actual temperature. Anything getting on the iOS App Store cannot make use of private apis. Same code used to get ioreg thermal sensor readings on Mac might work on iOS but I don’t know and it again wouldn’t work for the App Store
 
  • Like
Reactions: bogdanw

bogdanw

macrumors 603
Original poster
Mar 10, 2009
6,099
3,011
Thank you for the answer! I’ll keep an eye on alternative App Stores :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.