PHPhotoLibrary requestAuthorization, not requesting

后端 未结 2 1797
一个人的身影
一个人的身影 2021-01-22 16:58

For testing, I was trying to recreate the system \'Requesting Access\' popup experience.

Update:
Under iOS 11, after deleting the App, the system po

2条回答
  •  心在旅途
    2021-01-22 17:43

    After further reading, this seems to be by design.

    From Apple:

    This method always returns immediately. If the user has previously granted or denied photo library access permission, it executes the handler block when called; otherwise, it displays an alert and executes the block only after the user has responded to the alert.

    Saying 'This method always returns immediately' if user was prompt once. After that it will not show the request again. Seems to be no way (but some custom message) to use the system message again.

提交回复
热议问题