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
5
votes
0 answers

iOS Share Extension with custom SUBQUERY for NSExtensionActivationRule

I have implemented a share extension for an iOS App. The extension works with images and videos successfully. Now I am looking for a way to make the extension work for more file types, such as PDF's, Spreadsheets (Excel, Pages, etc.), Documents (MS…
Shumais Ul Haq
  • 1,427
  • 1
  • 15
  • 26
5
votes
1 answer

iOS share extension: need to share all the pdf files including web link pdf files through my share extension

I need to share pdf files from other application through my Share extension. In my share extension, I am using this NSExtensionActivationRule NSExtensionActivationRule SUBQUERY ( extensionItems, $extensionItem, …
Nobin Thomas
  • 181
  • 11
5
votes
1 answer

How to open iOS app from within extension?

My app is registered for URL Schemes: But I have no idea how to open that app, since I cannot use UIApplication.sharedApplication() in extension. Is it possible at all?
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
5
votes
3 answers

How to access keyWindow in share extension in ios?

I need to access keyWindow in share extension for my app to - Add some indicator view - Access the width and height of window I wrote the following line in the share extension classes: UIWindow *mainWindow = [[UIApplication sharedApplication]…
Ashok
  • 5,585
  • 5
  • 52
  • 80
5
votes
0 answers

iOS 8 Extensions don't appear in the Share Dialogue

I'm building a Share Extension to my App. My problem is that it doesn't show up in the Share List, until I go to 'More' screen, disable then enable it. I have tried all 'NSExtensionActivationRule' combinations including TRUEPREDICATE. PS. Same thing…
5
votes
2 answers

iOS 8.3 Share Extension - Launching URL Schemes

since iOS 8.3 update my share extension (which calls my main app using URL Schemes) stopped working. So I found out that the UIWebView approach I had to launch my app is not working anymore. I also tried the approach Apple recommends, using…
edulpn
  • 125
  • 1
  • 8
5
votes
0 answers

How to write a file from iOS8 share extension that host app can read?

I have a share extension in iOS8 that I'm invoking from Safari. After it runs it has some data that it wants to share with the main application (for which both are using a shared app group), however the data is far too big to stuff into the user…
5
votes
1 answer

iOS Share Extension Doesn't Terminate

I've created an iOS share extension with a custom UI (not using SLComposeServiceViewController) and everything works great. Once the extension is invoked, it takes a shared URL or text and sends it. That's all it does and it works well. The custom…
Josh Hudnall
  • 1,021
  • 8
  • 16
5
votes
0 answers

Upload Photo And Associate With PFObject In ShareExtension

I'm trying to upload an image to Parse and associate it with a PFObject in my share extension however I'm not sure how to properly do this given the constraints around writing a share extension. My first attempt at this is as follows using PFFile…
4
votes
0 answers

Share Extension don't open/share .HEIC type image

i created share extension for my app which can share image/videos from photos(Gallery) and it work properly but here problem is if i select .HEIC type file then click on my share extension it show error as shown in below screenshot . import…
4
votes
2 answers

iOS YouTube Share Extension Not Providing URL

I have the following code in my share extension to get the URL that is shared. if let item = extensionContext?.inputItems.first as? NSExtensionItem { for (index, _) in (item.attachments?.enumerated())! { if let itemProvider =…
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
4
votes
1 answer

Disable Messenger from UIActivityViewController

I would like to disable Messenger from UIActivityViewController options. I know that there is excludedActivityTypes attribute which I can exclude some activities from showing. It's working fine and I disable what I want. But I still have Messenger…
4
votes
1 answer

iOS Share Extension not working after deploy

I have created a Share extension which working fine while I am running it though xcode on device or simulator. But when I creating IPA or using TestFlight, it is not passing my list from host app to extension. I am creating this extension for…
Kapil
  • 41
  • 4
4
votes
2 answers

Share extension not activates for apple notes app

Works fine with All the apps except ios Notes App. Found a solution to solve this How to share notes data with share extension in iOS 9? But Am using Subquery as NSExtensionActivationRule. So Unable to add NSExtensionActivationDictionaryVersion…
4
votes
2 answers

Show network activity indicator on Share Extension iOS

Normally, in main app, we can use this to show network activity indicator. [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; However, in share extension, we don't have [UIApplication sharedApplication]. How can I show…
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120