Questions tagged [share-extension]

198 questions
7
votes
2 answers

Why Share Extension is not working on iOS 13?

I was using a Share extension in my app in order to import audio files and it was working on iOS12. Now in iOS 13 is not working anymore, when I press the share button my app doesn't appear in the share sheet. I think that maybe something has…
Fab
  • 816
  • 8
  • 17
7
votes
1 answer

Using React Native within an iOS share extension

Jumping off of this facebook/react-native#1626 GitHub issue, I had a question about setting up a React Native view within an iOS share extension I posted an example GitHub repo that demonstrates the problem, summarized below. So far the…
6
votes
3 answers

Rotate image in share extension

I have this extension and it works perfect in app target but crash in share extension when trying to rotate image captured on camera. How to rotate image in share extension? Or maybe it possible to load image from Photo Library already in right…
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
6
votes
1 answer

Share extension with custom class instead of SLComposeServiceViewController

I'm currently working with share extension feature. here when I search lot, seems always using SLComposeServiceViewController to share the image with some text content to particular app. But I'm expect custom UIViewController class loaded with…
Ram
  • 764
  • 1
  • 7
  • 20
6
votes
0 answers

ios swift share-extension: what are all and the best ways to handle images?

i have a share-extension handling different kinds of formats, like images. for attachment in content.attachments as! [NSItemProvider] { if attachment.hasItemConformingToTypeIdentifier(kUTTypeImage as String) { …
Hilmar Demant
  • 515
  • 5
  • 20
6
votes
1 answer

iOS 11 PDF share Extension

I have the following rule set NSExtensionActivationRule SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( …
Andy Jacobs
  • 15,187
  • 13
  • 60
  • 91
6
votes
1 answer

UIImageJPEGRepresentation crashes in Share Extension on iPhone SE

I have a share extension that lets you crop an image and then upload it to our service. We call UIImageJPEGRepresentation to get the image's data before we upload it, but causes a crash due to memory excessive memory. This only happens with large…
rob
  • 4,069
  • 3
  • 34
  • 41
6
votes
1 answer

Firebase not usable in iOS app extensions since 3.8.0 due to GTMSessionFetcher sharedApplication #AskFirebase

I'm using Firebase in my latest app. After upgrading the pods to 3.10.0 the share extension of the app can't be built. The Firebase pods depend on GTMSessionFetcher which uses sharedApplication which is not available in app extensions. I'm using the…
cybergen
  • 3,108
  • 1
  • 22
  • 30
6
votes
0 answers

Share FirebaseAuth session between app and share extension (iOS)

Is it possible to share the Firebase auth token between the main app and its share extension? I currently have made a way to get the users uid by saving to NSUSERDefaults after login then accessing from the extension via App Groups, would this need…
russell
  • 176
  • 1
  • 12
5
votes
1 answer

Share extension react native - expo

I have created a react-native app using expo. Now I am looking for share-extension to the app to import CSV data from email attachment to my app. I have tried npm package but that does not work for me(I was not able to build my project with that npm…
Rutul Patel
  • 663
  • 2
  • 10
  • 23
5
votes
1 answer

Cannot read coredata from extension

I have an app that stores some information in coredata and reads them. I'm writing a message extension of this application and I'd like to have this extension reading the same data but I always have empty response. Here is the code I'm using in the…
radar
  • 500
  • 1
  • 6
  • 24
5
votes
0 answers

NSItemProvider loadItemForTypeIdentifier not respecting NSItemProviderPreferredImageSizeKey

I am trying to get a resized image of maximum 1080x1080 pixels in my app extension: NSExtensionItem *item = self.extensionContext.inputItems.firstObject; NSItemProvider *provider = item.attachments.firstObject; id imageOptions = @{ …
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
5
votes
1 answer

iOS Share Extension flow

I have problems with creating share extension like share extension of the Pinterest app. When user is not logged to the containing app the share extension only presents alert with an option to log in and cancel. Where in code decide which view…
Marcin Kapusta
  • 5,076
  • 3
  • 38
  • 55
5
votes
0 answers

Swift Share Extension Killed

I have a iOS Share Extension written in Swift. This is my first with Swift and I'm having issues with the Share Extension closing before the actions are completed. This Share Extension uploads an audio file to an API. The audio file has to be base64…
Kyle
  • 1,058
  • 2
  • 10
  • 22
4
votes
1 answer

iOS ShareContext tapping on Suggestion Intent property of extensionContext is nil

I have a ShareExtension in my iOS app. I am trying to use Suggestions. I can successfully 'donate' the intent using the following code from the apple developer website: let groupName = INSpeakableString(spokenPhrase: "Juan Chavez") let…
alionthego
  • 8,508
  • 9
  • 52
  • 125
1
2
3
13 14