How to check if iOS device has been rebooted since launch
ios, objective-c
Solution
Not sure sure if this is what you wanted but have a look at this:
https://github.com/pfeilbr/ios-system-uptime
In this example the author fetches it from the kernel task process.
Or you could look take the mach_absolute_time route, there is an official Apple Q&A with a similar aim https://developer.apple.com/library/mac/#qa/qa1398/_index.html
Hope this helps.
Problem
Looking to see what people have come up with for this. Basically I want to know if the actual device has been rebooted since my app was last launched. What methods do people use to find this out? (If any?) I've considered using mach_absolute_time but this is still an unreliable method. Cheers