App Clip Save to Photo Library Support

It says on this post, that App Clips support the "Photos" Library. However, whenever I try to save a photo to the user's camera roll, an "Unknown Error" occurs.

I tried requesting library access with:

      switch (status)
      {
      case .authorized:
        // Permission Granted
        print("Photo Library Authorized")
      case .denied:
        // Permission Denied
        print("Photo Library User Denied")
      default:
        print("Photo Library Restricted")
      }
    }

but the result is always permission denied. Can you not save photos to the camera roll from an App Clip? This seems like it would be very basic, useful functionality

Code block is missing first line (apologies): PHPhotoLibrary.requestAuthorization { status in

Accepted Answer

The documentation you link has the following in it:

App Clips come with limitations that help protect user data. They can’t access:

  • Data from apps like Calendar, Contacts, Files, Health, Messages, Reminders, and Photos

As well as:

However, the following frameworks provide no functionality at runtime: Assets Library ... PhotoKit

Is there other documentation you're seeing that says App Clips support accessing or saving to the Photo Library?

App Clip Save to Photo Library Support
 
 
Q