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
3
votes
1 answer

share extension subquery to limit the item types

SUBQUERY( extensionItems, $extensionItem, SUBQUERY( $extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.adobe.pdf" ).@count == 1 ).@count == 1 OR SUBQUERY( extensionItems, $extensionItem,…
S.J
  • 3,063
  • 3
  • 33
  • 66
3
votes
0 answers

Show error from Share Extension

I'm developing a Share Extension for my iOS app where the user can upload a picture to our service. As the image can be quite large, I'm doing the upload in the background. The problem is that sometimes there can be an error when uploading the image…
madelman
  • 317
  • 1
  • 3
  • 11
3
votes
2 answers

Share extension app store upload issue

Hello fellow developers, I'm uploading an app with share extension, extension should only accept images. For some reason when I'm uploading app for beta testing i get an warning as below. No values under NSExtensionActivationRule in bundle…
Abhishek
  • 454
  • 3
  • 9
3
votes
1 answer

NSExtensionActivationRule for iOS app extension that can share everything

I implemented a Share-Extension that works find with all sorts of things that you want to share. So I want my user to be able to share URLs, Text, Images, Videos, Any other files and even combinations of that (like from the notes app with text and a…
Georg
  • 3,664
  • 3
  • 34
  • 75
3
votes
1 answer

Create iOS share extension that opens my app

What I want to archive in the end, is the possibility for the user to open every single file in my app. So I went ahead and added public.data and public.content as Supported Document Types as described here:…
Georg
  • 3,664
  • 3
  • 34
  • 75
3
votes
1 answer

"ProjectName-Swift.h" file not found - Share Extension

We've been mixing swift with our mostly Obj-C project and it has been working fine. But when I need to add a .m file to the build phases of my extension that is importing "ProjectName-Swift.h", the extension cannot find that file. How can I fix…
3
votes
2 answers

How to get items from extension context in Share extension for iOS?

Once my share extension is loaded, not everytime and not everything is visible for user immediately. The most common is that there you can see image, number of images, and content text. However there are cases where there is a lot more informations.…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
3
votes
1 answer

ios share extension portrait only

I need to restrict my share extension to be in portrait mode only. But so far, it is not okay. Is there a way to do? @implementation UINavigationController -(BOOL)shouldAutorotate { return…
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120
3
votes
1 answer

IOS 9 - Share Extension Compulsory to get public.file-url

I have an issue in share extension with 2 different scenario in iOS9 (working fine with iOS8) --- (wants to share PDF): First goto the mail app with PDF attachment mail- Long press the PDF attachment then select my application from share sheet.…
Akshar Darji
  • 397
  • 2
  • 12
3
votes
1 answer

NSURLSession: Could not communicate with background transfer service

When trying to create a NSURLSessionUploadTask using AFNetworkings AFURLSessionManager in a share extension I keep getting an error. The delegate for the session keeps getting called for - (void)URLSession:(NSURLSession *)session…
datinc
  • 3,404
  • 3
  • 24
  • 33
3
votes
1 answer

iOS share extension not getting the image

I am sure this is trivial once someone kindly point me in the right direction so my apology for asking a silly question. However I have been searching for days I can't figure out what I am doing wrong. Scenario: create a simple share extension that…
3
votes
0 answers

iOS 8 UIActivityViewController Mail does not send email attachments

I am trying to share my custom type ".stccourse" via UIActivityViewController. I can Airdrop the file to my mac from my iPad but when I try to mail it, I don't get any file attachment. I do see the text as message body but no attachment. Following…
Vik Singh
  • 1,563
  • 2
  • 19
  • 36
3
votes
1 answer

iOS share extension activation rule triggered when it shouldn't be for public.url type

I have an iOS app with a share extension. The share extension uses the "predicate syntax" NSExtensionActivationRule plist setting. Here is the predicate string that's used. SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( …
Evan
  • 2,983
  • 8
  • 31
  • 35
3
votes
0 answers

Unit testing app extensions iOS8 via framework

So referring to this answer here it is recommended by apple to put all your code in a framework so you can test it. So my questions are does this have to be an embedded framework or can you create a separate project and put all the extension code in…
Genhain
  • 1,937
  • 1
  • 19
  • 38
3
votes
1 answer

NSItemProvider with type identifier "com.apple.pkpass"

I am building a share extension for iOS and would like to accept Passbook passes. I have the share extension working in that: NSItemProvider *itemProvider = inputItem.attachments.firstObject; [itemProvider…
bdjett
  • 514
  • 5
  • 9