2
votes

Is there a way to monitor how long an iPhone has been unlocked for during a day using Swift?

1
You can try to calculate it youself using this and translating it to Swift, but it may lead to a rejection from the App Store.saagarjha
Do you want to check how long it has been unlocked as total or unlocked since the user has used your application?Rashwan L

1 Answers

3
votes

Is there a way to monitor how long a phone has been unlocked for during a day

No, because this would require that your app actually be running at unlock time, and of course you can't possibly guarantee that.