ios-sharesheet

Error “[ShareSheet] connection invalidated” error iOS13+ but not on iOS 11.4

隐身守侯 提交于 2020-08-27 01:25:22
问题 I want to share a file using the Share Sheet and have written code that seems to work just fine. However I keep seeing these error messages in the log (using Xcode 11.3) [ShareSheet] connection invalidated I have two physical devices I'm testing on; an iPad running iOS 13.1.2 and an iPhone 6 running 11.4. I don't see these messages on the iPhone with the older iOS on it. Both cases the sharing seems to work just fine. Here's the code I'm using using text instead of a file: let

Share sheet - exclude options which are not provided as Type Properties in UIActivityType

匆匆过客 提交于 2019-12-12 12:21:15
问题 I want to exclude Add to iCloud Drive, Add to Reading List, Save to Files & Print from share sheet. I could exclude Add to Reading List and Print options using following code. Because these type properties have been provided. activityViewController.excludedActivityTypes = [ UIActivityType.print, UIActivityType.addToReadingList ] After with when I search google I found a way to remove options which are not included in type properties as follows (Ex: Add to iCloud drive) UIActivityType(rawValue

How does iOS determine which share extensions are enabled by default?

让人想犯罪 __ 提交于 2019-12-01 22:44:35
问题 Some apps have their 'Share Extensions' enabled by default when installing the app. Flickr is an example of this. However, other apps do not - OneNote, Wunderlist, etc are not enabled by default. Is there a setting in the plist file that controls this? I'm wondering if I can enable it by default, or have the user consent to enabling it by default, when my app starts up. Thank you! 回答1: These apps have agreements with Apple. If you look at your settings app, you can see these apps that have

How does iOS determine which share extensions are enabled by default?

╄→гoц情女王★ 提交于 2019-12-01 19:33:30
Some apps have their 'Share Extensions' enabled by default when installing the app. Flickr is an example of this. However, other apps do not - OneNote, Wunderlist, etc are not enabled by default. Is there a setting in the plist file that controls this? I'm wondering if I can enable it by default, or have the user consent to enabling it by default, when my app starts up. Thank you! These apps have agreements with Apple. If you look at your settings app, you can see these apps that have agreements. Vimeo is another app with a similar agreement. As far as I know, there is no way to set your app

How do I share an Audio File in an App using Swift 3?

强颜欢笑 提交于 2019-12-01 07:42:21
问题 Sharing an Audio File in Swift How do I share an audio file which exists in my apps document directory to other apps? To elaborate on this question, what I mean is when a user taps a share button in the app they should be able to email their recorded audio track to another person, or alternatively to be able to send it across to a range of other apps which can handle audio like perhaps soundcloud. Researching the topic, I have found: UIActivityViewController UIDocumentInteractionController