How do I detect ios turn off?


#1

I was able to set for ‘pause’ and ‘resume’

for leaving to background or retreve from background

$ionicPlatform.on(‘pause’, callback);

but how do I know if user turn it off by swiping up or anyhow etc device turned off meaning its completly off.