Closed sanidhya-saraswat closed 1 year ago
I don't know how to get it directly. But you can get notification information through NotificationProxyService
True, I was able to get notifications through the NotificationProxyService
. But the notifications come, when the lock state changes. I want to know the current lock state.
I found this online: UIApplication.shared.isProtectedDataAvailable
to get the lock state. Not sure how to call it.
PyiOSDevice(device_id=<device_id>).rpc_channel.lockdown.get_value(key='PasswordProtected')
This gives values as True
when the device is locked and False
when the device is unlocked.
@khrithik96 That's great
Event:
com.apple.springboard.lockstate
Can I get it using
rpc
call or some other way ?