iOS Question [SOLVED?] [by ChatGPT] Any way to detect when an iPhone or iPad wakes up from sleep

aminoacid

Well-Known Member
Licensed User
Longtime User
Trying to find some way to detect when an iOS device wakes up from "sleep" either via a gesture or by pressing the power button. I could not find any event (as in Android) that fires when this happens. Does anyone know of a way to do this?

Thanks!
 
Last edited:

aminoacid

Well-Known Member
Licensed User
Longtime User
The wonders of AI - answered by ChatGPT :p - After all these years, I didn't know that there was such an event. See below:


1682894562944.png
 
Upvote 0

aminoacid

Well-Known Member
Licensed User
Longtime User
Spoke too soon. AI may not be so "I" after all.....

The "Application_Resume" event does not fire. ☹️
 
Upvote 0

aminoacid

Well-Known Member
Licensed User
Longtime User
You can track your app state. You can't track the device state.

So does the "Application_Resume" event really exist or is it something that ChatGPT "made up"? If it exists, what will cause it to trigger? Just curious! Thanks.
 
Upvote 0
Top