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
10
votes
3 answers

How to create a react native ios share extension app

I want my react-native app to be available for share from Whatsapp, Skype, Photos.. I tried using react-native-share-extension but it is only showing the extension in the Safari browser. How to implement the sharing feature in applications other…
Trinu
  • 1,721
  • 3
  • 21
  • 41
10
votes
3 answers

Not Getting Success/Fail Callbacks for Share Extension using AFNetworking

I'm having a bit of a problem with AFNetworking in a share extension. In the didSelectPost, I'm calling: [[AuthClient sharedClient] POST: @"/v1/events" parameters: params success: ^ (AFHTTPRequestOperation * operation, id responseObject) { …
iMack
  • 38,281
  • 3
  • 21
  • 19
10
votes
1 answer

IOS Share extension: how to read from notes posts

I want my app to be able to parse text from notes app post as well other text editors posts, so i created an share extension target. Everything worked fine until i prepare the app for publish, replacing the TRUEPREDICATE by…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
10
votes
1 answer

iOS Show UIAlert in Safari when using My App's Share Extension

I'm developing a simple content blocker for iOS 9+ devices. Everything seems to be working fine in terms of blocking ad's / trackers etc and I even have the ability to 'whitelist' websites directly from Safari using a Share Extension Action. My…
9
votes
3 answers

Share Extension loadItemForTypeIdentifier returns error for NSURL

I have the following code to read in passed URLs. I'm testing this with the Pocket app and although hasItemConformingToTypeIdentifier is returning YES for kUTTypeURL, trying to load it in returns a error instead stating "Unexpected value…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
8
votes
1 answer

Excluding own application from UiActivityViewController

I am trying to remove my own applications share extension from showing up in the share options. I can't find any documentation on this online. Any help would be appreciated. This is what I have so far: activityVC.excludedActivityTypes =…
8
votes
1 answer

Share extension with NSExtensionJavaScriptPreprocessingFile no image

I'm building an iOS Share extension. I need to grab some data from web pages so I'm using a JavaScript file to grab that data and send it back to the app to be used in the extension. I noticed the following. When I set the…
Andres
  • 11,439
  • 12
  • 48
  • 87
8
votes
2 answers

How to get the status bar height in iOS Extension

I can get the status bar from UIApplication in normal app by [UIApplication sharedApplication].statusBarFrame But we cannot access UIApplication from Extension.Is there a way to find get the statusbar in share?
8
votes
3 answers

How to create an iOS share extension for contacts

I am trying to create an iOS share extension to share contacts using the following code: let contactType = "public.vcard" override func viewDidLoad() { let items = extensionContext?.inputItems var itemProvider: NSItemProvider? if items…
atmospherelabs
  • 163
  • 3
  • 10
8
votes
1 answer

Share text AND media with WhatApp Share Extension

I'm using a UIActivityViewController to enable the user to share photos and videos created with my app. I attached two UIActivityItemProviders to it: one for the media and one for a default text to use ("Created with..."). This works well for all…
Frank Rupprecht
  • 9,191
  • 31
  • 56
8
votes
1 answer

Function didSelectPost() not called - iOS Share Extension

I added share extension to my iOS app project on XCode. but when I choose one photo, and choose my extension to share it, the didSelectPost() function of my ShareViewController is never called! for testing that, I juste put a breakpoint on it and…
profskz
  • 209
  • 1
  • 4
  • 10
7
votes
0 answers

iOS Share Extension Changing Size of Preview Image with Swift

In an iOS Share Extension it is possible to grab the preview image with loadPreviewImageWithOptions. Is it also possible to change the size of the preview image? The preview image seems to be a screenshot of the website. I am wondering if it is…
rds
  • 133
  • 1
  • 4
7
votes
4 answers

How to only share an image or video with a share extension

I want my extension support text, url, video and 10 images. I have configured plist as below: This work fine but I want my extension does not support image and video at the same time. I understand that I'll most probably have to build a…
Buvaty
  • 71
  • 4
7
votes
1 answer

iOS Share Extension Only Shows in Safari

I am testing an iOS share extension I'm building for an iPhone app. The share extension only appears in the share sheet for Safari. It doesn't show up in any 3rd party apps like Alien Blue or even any other 1st party apps like News. Is this because…
AttilaTheFun
  • 701
  • 2
  • 11
  • 19
7
votes
1 answer

How to get image form URL passed by share extension to an App

I working on sharing array of images from gallery using share extension. i can get image inside share extension using - (void)getImageFromExtension:(NSExtensionItem *)extensionItem { for(NSItemProvider *attachment in extensionItem.attachments) …
Muruganandham K
  • 5,271
  • 5
  • 34
  • 62
1
2
3
18 19