Post

Replies

Boosts

Views

Activity

Reply to Could not create sandbox extension when share video in IOS >14, but iOS 13 worked
Update: Problem solved First of all make sure your video available in your DocumentDirectory and than you can share it via URL of Directory like below. Share Video with URL: let url = self.documentDirectory().appendingPathComponent("yourFilename") let share = UIActivityViewController(activityItems: [url], applicationActivities: nil) share.popoverPresentationController?.sourceView = self.view self.present(share, animated: true, completion: nil) Get URL of DocumentDirectory: func documentDirectory() - URL { let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! return documentsDirectory }
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’21
Reply to [default] Failed to issue sandbox token for URL get error when share video in IOS 14, but IOS < 14 worked
Update: Problem solved First of all make sure your video available in your DocumentDirectory and than you can share it via URL of Directory like below. Share Video with URL: let url = self.documentDirectory().appendingPathComponent("yourFilename") let share = UIActivityViewController(activityItems: [url], applicationActivities: nil) share.popoverPresentationController?.sourceView = self.view self.present(share, animated: true, completion: nil) Get URL of DocumentDirectory: func documentDirectory() - URL { let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! return documentsDirectory }
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’21