Questions tagged [ios8-share-extension]

Related to the "Share" extension of the iOS notification center.

Related to the "Share" extension of the iOS notification center.
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/index.html

279 questions
7
votes
1 answer

iOS 8 Share Extension not working on device

I have creat a new target Share Extension in xcode , then I run it on my device. I don't know why when I run my Share Extension on my devices (iPhone 5c, iPhone 5s, iPhone 6) the won't show. Pls help me! Any suggestions on how to fix this would be…
Lê Trinh
  • 327
  • 3
  • 11
7
votes
2 answers

ios share extension post button title

I want to change the title of post buttons in SLComposeServiceViewController. I managed to get the UIButton: NSArray* subviews =[self.navigationController.navigationBar subviews]; UIButton* postButton =[subviews lastObject]; and i tried to set…
Esti M
  • 193
  • 2
  • 10
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
1 answer

How to extract a zip file and get the extracted components in a Share Extension in Swift

I need to do the following- I have another app in which i will export the users config(.txt) and contacts(.vcf) in a zip format. In the second app i have a share extension to get the exported zip and in the share extension, i need to extract the…
Kautham Krishna
  • 967
  • 1
  • 14
  • 33
6
votes
4 answers

Share Extension is not working in Chrome

I am working on Share Extension Here is code of info.plist file . this is working fine in Safari, But not in Chrome. NSExtension NSExtensionAttributes
arun kamboj
  • 1,145
  • 4
  • 17
  • 48
6
votes
3 answers

iOS 8 extension dependencies issues. Importing one project file to extension view controller

I am working on iOS 8 extension. I read many manuals and all of them just show how simple add extension to your app, and seems that's enough. But here are many pitfalls: After adding your extension you will need to import some of your classes to…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
6
votes
2 answers

iOS Extension - Detect "extension state changes" (Background/Foreground)

I have a share extension implemented for iOS8. The service uses OAuth to authenticate. The login info I use for the extension is shared with the container app. The problem is: When I am in the extension, then app switch to the container app and…
Adam Zielinski
  • 401
  • 3
  • 8
5
votes
0 answers

How to access file(Image) from IOS Share Extension

I have implemented a share Extension on my app. And on main app, I am using onOpenURL to access the shared file. Example url =…
5
votes
1 answer

Swift Share Extension not shown for PDFs

Using Swift5.3.2, iOS13.0, My Share Extension is working for images and videos. However it does not work for PDFs. The problem is that my App is not visible in the list of Share-Apps for a PDF document that I am trying to share with my App. I know…
iKK
  • 6,394
  • 10
  • 58
  • 131
5
votes
2 answers

Share extension - App not showing in share menu on first attempt since iOS 14

Something weird seems to start happening after upgrade to Xcode 12 and iOS 14. App use to show fine in share menu option before, but suddenly it is acting weirdly and only showing on second attempt onwards. My aim is to get web page url. Here's my…
Milan Mendpara
  • 3,091
  • 4
  • 40
  • 60
5
votes
0 answers

Crash occurs when executing Share Extension twice in system Files to share file to app

The app uses Share Extension to import a string of .txt files to Core Data. And then syncs the Core Data to iCloud. There is an entity called Item. When sharing a new item in system Files through Share Extension, the code needs to calculate the…
Muz
  • 699
  • 1
  • 11
  • 25
5
votes
1 answer

cannot open/read image via share extension

I'm trying to get image in the app extension. The problem is I can't get the image when the type is "public.image", however, it succeeds when the type is "public.png". What I want to do is just getting the image and upload to the server. Here's the…
Justin Sato
  • 523
  • 1
  • 4
  • 20
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

How to add files to an App Group shared directory?

So I have an app with a share extension each with their own target. The core of the apps' bundle identifier is com.company.app and the share extensions is com.company.app.share. Each have their own entitlements file, with the core apps being App…
5
votes
3 answers

Access Realm from 2 different target at the same time

Let say, I want to use realm for my share extension, so the question is, can I access Realm in the share target while the containing app is running. It looks like it is impossible but can I have advise from experienced. Thanks!
sahara108
  • 2,829
  • 1
  • 22
  • 41
1 2
3
18 19