I am new to programming. As one of my app need updates if the device is shutting down (switched off), hence I need the current time when the device is getting switched off.
and I know that, we can get the system boot time (switched on time) with [NSProcessInfo processInfo].systemUptime .
but I need switched off time. Is there any way to get it! If yes please let me know how...? Edit: If No, Please let me know the reason...!
I also referred the below link. and it gives the system boot time (switched on time) only. Getting iOS system uptime, that doesn't pause when asleep
Please give me right solution if it is there...!