Dimple Shah
Dimple Shah

Reputation: 303

Share Extension not working with iOS 9

I have an issue with share extension,

  1. Open the Mail App.
  2. Select the mail with PDF attachment.
  3. If I long press on the pdf then i showing up my app but I Open the PDF in documentinteractioncontroller and clicking on the share icon then I am not able to see my app.

Above steps are working fine with ios8 but only issue in the ios9 or later.

I need to open share extension from share icon of documentInteractionController.

Please help me as soon as possible...

Upvotes: 2

Views: 1607

Answers (1)

Thais
Thais

Reputation: 128

On iOS9 due to the new changes on Safari security you have to set what kind of URL would work with your Share extension, for example, showing your Share extension only for text, images, etc...

Maybe the problem could be that you have to set what kind of data your app accept from Share extensions. You can set this param on your extension plist adding values to the dictionary NSExtension - NSExtensionAttributes

enter image description here

There's a list with the types you can use there (like NSExtensionActivationSupportsWebURLWithMaxCount, NSExtensionActivationSupportsText, etc... Maybe you need NSExtensionActivationSupportsAttachmentsWithMaxCount):

https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/SystemExtensionKeys.html

I hope it helps

Upvotes: 2

Related Questions