MPMedialLibrary.requestAuthorization not working on iOS13 devices

The following code works when I run on an iOS 12 device and simulator, but not when I run on iOS 13 (b3) devices and simulators. The completion handler doesn't get called. I have the Media Library Usage Description key set in my info.plist


func requestAccess() {
       
      print("requesting access NOW")
      MPMediaLibrary.requestAuthorization { (status) in
            print("Access returned")
            if status == .authorized {
               print("Allowed!")
            } else {
               print("Something else")
            }
      }
}

Replies

I'm encountering the same issue. I haven't found a workaround.

Same here. I filed a bug report/feedback and would encourage you to do the same if you haven't already.

I filed a bug report via feedback. Let's see what beta 4 brings!

Not fixed in beta 4 😟

Filed as bug in Feedback app as well. Hopefully this gets fixed soon!

It was fixed on iOS 13 beta 5!

I can confirm!