I have a very specific task - I need to find a way to observe iOS device temperature. I'm developing an application which is a system for multiple devices. And sometimes there're cases when one of iPhones/iPads is overheating. My task is simple - I need to have a possibility to tell other devices that one certain "chain" is about to overheat or already overheated.
Is there any way to do this without violating Apple security laws? Because this application will go to Appstore and I don't want to have problems at this stage.
You can do it by using Bluetooth Low Energy by following way: 1. Create a characteristic and service for reading temperature.
Add the listener on other devices so that they will get notify when temperature of the device will change.
For overheated, define a threshold.
For temperature, please refer: https://github.com/beltex/SystemKit/blob/master/SystemKit/Battery.swift
For BLE, please refer https://www.appcoda.com/core-bluetooth/