PHPhotoLibrary.requestAuthorization not asking permissions

Sub Title

How to clean up the app and all associated data from devices.

Symptom

XCode 12.4

iPhone 8

iOS 14.4

macOS Big Sur 11.2.1

When I was testing Nega Viewer App Clip which access the camera and photo library, suddenly PHPhotoLibrary.requestAuthorization did not ask permissions. I tried the following cases, and only #3 worked for me.

Solutions

Case #1

  1. Remove the application from the iPhone.
    It did not work.

CASE #2

  1. Remove the application from the iPhone.
  2. Go to [Settings] >> [General] >> [Date & Time]
  3. Set Automatically Off
  4. Set future date

It did not work.

Case #3

  1. Remove the application from the iPhone.
  2. Power off iPhone and restart.

It worked. After the restart, it did not happen again.

Case #4

  1. ⌘ + Shift + 2, or Xcode >> Menu >> Window >> Devices and Simulators
  2. Select the application and press the minus button to delete the app and all associated data.

Before I tried this, it has been fixed. I will try this next time.

投稿者: admin

Free Software Engineer

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です