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…
I need to share pdf files from other application through my Share extension. In my share extension, I am using this NSExtensionActivationRule
NSExtensionActivationRuleSUBQUERY (
extensionItems,
$extensionItem,
…
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?
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]…
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…
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…
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…
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…
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…
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…
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 =…
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…
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…
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…
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…