Questions tagged [ios-sharesheet]

iOS Share Sheets, allow a user to share important information directly with third party applications and services. Users can share via email, text and social networking apps.

85 questions
51
votes
3 answers

How do I share files using share sheet in iOS?

I want to share some files I have locally in my app using Share Sheet functionality on iPhone. I display the file in a UIWebView and when the user clicks the share sheet, I want to show options (email, WhatsApp, etc. ) to share the file displayed on…
user3528213
  • 1,415
  • 3
  • 15
  • 18
18
votes
3 answers

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

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…
N.W
  • 672
  • 2
  • 8
  • 19
8
votes
1 answer

iOS 13 Share Sheet: Changing subtitle/item description

The new iOS 13 share sheet provides a nice header that shows the context of the item being shared. I haven't been able to figure out how to change the item description though. I've used activityViewControllerLinkMetadata function which partially…
Jagoan Neon
  • 1,072
  • 11
  • 13
7
votes
1 answer

Can a progressive web app be registered as a share option on iOS?

I plan to develop an app (not sure if I will go with PWA yet) which includes the following "wishlist" scenario: The user is browsing a website he likes using safari, chrome or any browser He clicks the share button in that browser, in order to send…
Vincent
  • 3,945
  • 3
  • 13
  • 25
7
votes
3 answers

UIActivityViewController Hide my application share Extension

In my application, I have added my share extension it's working fine, But I face One problem When I invite app through UIActivityViewController I show my application Extension. How can I hide my application Extension of my own application?
Ilesh P
  • 3,940
  • 1
  • 24
  • 49
7
votes
1 answer

How to get image form URL passed by share extension to an App

I working on sharing array of images from gallery using share extension. i can get image inside share extension using - (void)getImageFromExtension:(NSExtensionItem *)extensionItem { for(NSItemProvider *attachment in extensionItem.attachments) …
Muruganandham K
  • 5,271
  • 5
  • 34
  • 62
6
votes
2 answers

How can I get my SwiftUI app to show on the IOS Photos Share Sheet?

I am trying to get my SwiftUI app to be listed on the share sheet of IOS photo library, so the user can directly open the application with this image. Example: Apps like facebook, WhatsApp and Instagram do show up on the share sheet and I want my…
6
votes
1 answer

How to open Share Sheet from presented sheet

Following several tutorials (Medium for example) you can open a share sheet like this: Button(action: { let url = URL(string: "https://apple.com") let av = UIActivityViewController(activityItems: [url!],…
Patrick Michiels
  • 239
  • 4
  • 13
6
votes
1 answer

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

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…
5
votes
3 answers

How can you add icon to a share sheet in swift?

I am using a share sheet in my iOS app. I am trying to figure out how I can add an icon to the top left corner of it when it opened. I added a photo example of what I mean. [Example photo of what I mean][1] @IBAction func shareButtonClicked(_…
Chris
  • 59
  • 1
  • 3
5
votes
1 answer

Prevent my own app's share extension from appearing in the share sheet

I'm building an iOS app that manages audio files. It includes a share extension to receive audio files from other apps. It also can share its audio files with other apps. When a share is initiated from my app, I do not want my own app to appear in…
Steve s.
  • 301
  • 1
  • 4
  • 13
5
votes
1 answer

Show app as "Import with " in UIActivityViewController

I'm implementing export / import feature for my app: Export data with custom file extension (Backup.appname) → tap on file in mail or iCloud drive → have my app shown as "Import with AppName" in share sheet. I added a custom UTI and document type to…
Alexander Borisenko
  • 1,574
  • 1
  • 12
  • 16
4
votes
1 answer

iOS 15.4.0 ShareSheet _activityImage is not supported for proxies to out-of-process activities

From iOS 15.4.0 we have the crash on Crashlytics but don't known how to reproduce and fix it. It is producing crash due to Apple default shareSheet. I hope someone can provide some insights to fix this. Code I use to open shareSheet func…
4
votes
1 answer

How to implement "Options" in iOS 13 Share sheet

In iOS 13 many different system apps (for example Photos and Safari) added "Options" to their share sheet. Users can select as what they want to export (URL / Web Archive) and sometimes even options (include All Photos Data). How can this be…
Hans
  • 2,354
  • 3
  • 25
  • 35
4
votes
2 answers

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

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. …
Dimuth
  • 713
  • 2
  • 11
  • 34
1
2 3 4 5 6