Can I use the notification "com.apple.springboard.lockcomplete"?

I am trying to find the device lock state, since UIApplicationState gives an incorrect state when the device is locked, it gives UIApplicationStateActive for a few seconds.

I found one solution using Darwin notifications for the notification "com.apple.springboard.lockcomplete".

Is this the right way to get the lock state? Does Apple allow this?

+4
source share
4 answers

No Apple will allow the use of "com.apple.springboard.lockcomplete". Because of this, my application will be rejected.

+2
source

The answer ... it depends.

API , . , - , . Apple:

API: com.apple.springboard.lockcomplete

, 4 , App Store . . , , , .

0

Apple . : " API- App Store , API-.

API Apple Developer, App Store ".

0

, com.apple.springboard.lockcomplete :

2.5.1 - -

API:

com.apple.springboard.lockcomplete

API- App Store , API.

API Apple Developer, App Store.

, , . , "strings" "otool". "strings" , , "otool -ov" Objective-C . , . "nm", , API - .

, , .

0
source

Source: https://habr.com/ru/post/1654332/


All Articles