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
1
vote
2 answers

Disable Share Extension options when use UIDocumentInteractionController and UIActivityViewController

I use to use UIDocumentInteractionController and UIActivityViewController to share data with a special UTI. However, when other app use Share Extension, there will may options when share interface popup, such as copy tp xxx and import to xxx. How…
1
vote
0 answers

Core Data causing exception when running in share extension

I'm building a share extension for my app, which has meant initialising the Core Data database from the shared directory: let directory = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: applicationGroupIdentifier)! let…
Andrew
  • 7,693
  • 11
  • 43
  • 81
1
vote
1 answer

Show an error on the SLComposeServiceViewController

I have a share extension where the user chooses a photo or video, which we then upload (a) to Amazon and then (b) the URL to our server. This can take some time and so if an error happens during the upload I would like to alert the user on…
theDuncs
  • 4,649
  • 4
  • 39
  • 63
1
vote
1 answer

iOS share extension exception - items configuration

I'm having troubles implementing the share extension in an application. I'm using swift 3, xcode8. override func configurationItems() -> [Any]! { // To add configuration options via table cells at the bottom of the sheet, return an array of…
Julian C.
  • 13
  • 4
1
vote
0 answers

how to get name of app where my share extension is used?

I am working on share extension and I want the name of the application where my share extension is clicked. If I click on whatsApp sharer(or UIActivityViewController) then a list of shareVia apps displays, there if I clicked on fb then I need to…
Satish A
  • 584
  • 4
  • 17
1
vote
1 answer

iOS Share Extension unable to get shared URL from Chrome

I am trying to implement share extension for my app. Its working good in safari browser and youtube app (i.e) when i share from these apps i get the public.url which is the url to be shared. When i tried the same in chrome it was not showing the…
Ravindra
  • 61
  • 5
1
vote
1 answer

Share extension causes safari to hang in iphone

I am developing an iOS app that allows user to save urls, similar to the Pocket app. In the app I have a share extension that basically just save the url into a NSUserDefaults based on the app group. For some reason the share extension causes the…
dickyj
  • 1,830
  • 1
  • 24
  • 41
1
vote
2 answers

Redirect back to app from Share Extension

Is it possible to redirect a user back to my app from my share extension (after finishing the posting/other action)? I couldn't get UIApplication.sharedApplication() to work - method was unavailable. Any ideas if this is possible/if Apple even…
royherma
  • 4,095
  • 1
  • 31
  • 42
1
vote
2 answers

Safari is frozen once I share the link to my app from share extension

My app implements Share extension. I can share any link to my app from Safari, once I tap POST button within SLComposeServiceViewController share view disappear, but screen of Safari is frozen. I need to force close Safari to use it again. What…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
1
vote
0 answers

How to clean memory in Share Extension for iOS?

For some reason there is a lot of messages Received memory warning. Sometimes this occur along with _BSMachError: (os/kern) invalid capability (20). I do not know what is going on. I read a lot of questions how to solve this, but with no…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
1
vote
0 answers

iOS Share Extension can not work HTTP request and shows many errors

Recently when I selected the my share extension at share extension list using real device iPhone5s which OS is iOS8.2, debugger showed many errors and sometimes could not HTTP request and showed HTTP request timed out error. The simulators do not…
penlight
  • 617
  • 10
  • 26
1
vote
1 answer

Can not Hide Keyboard with SLComposeServiceViewController

My Share Extension doesn't require any user input aside from configuration in a table view so I am trying to hide the keyboard when the view is presented in Safari. I'm able to run my code in the simulator fine but when I test on my device, I'm the…
1
vote
1 answer

iOS Share Extension NSURLSession not working on iOS 9

So I have this iOS Share Extension for my app that sends a result to my server in didSelectPost() when the 'POST' button is clicked. It all works fine on simulator; the request is sent and I can see data packets going out in Charles. On iOS 9, the…
Max One
  • 73
  • 1
  • 9
1
vote
0 answers

Text is not passed to my Share Extension while it is passed to other Share Extensions

What do I mean? This is the list of extensions activated for some app downloaded from App Store: There is Message, Mail, Notes and Add to Wishlist (my extension). This is what happens when I tap on message: This is what happens when I tap on…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
1
vote
1 answer

How to get access to the POST button in SLComposeViewController?

On the right top side there is disabled post button. How can I change its text or enable it manually? navigationBar.rightBarButtonItem?.enabled = true doesnt work
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358