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
0 answers

Error occurs when scanning QR code using AVFoundation library in iOS share extension

I want to scan QR Code in Share Extension, the codes below can run correctly in normal iOS application AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; NSError *error; AVCaptureDeviceInput *input =…
3
votes
1 answer

iOS 8 Share Extension Attachments - Xcode - Swift

I have added a Share Extension to my iOS app, and have created a custom UI using UIViewController, NOT the default SLComposeServiceViewController. The UI is working, but how do I refer to the files that were chosen to be shared? For instance, if I…
Arvin Zadeh
  • 103
  • 1
  • 8
3
votes
1 answer

Use Dynamic Javascript in iOS Share Extension

I am developing a share extension for iOS 8 and it seem like i can run javascript code on page to grab some information like markup of the mage But on the apple document it says that javascript code must be inside a .js file but my javascript code…
3
votes
1 answer

iOS Share Extension that Manipulates a Web Page

I'm trying to figure out how to get my share extension to access a web page and manipulate its contents. I've followed the documentation but I must be missing something because I am not seeing any items conforming to kUTTypePropertyList as I thought…
Bret
  • 883
  • 1
  • 9
  • 18
3
votes
1 answer

iOS add share extension on maps

I want to add share extension on Apple's Maps, does anyone know how to do. I try to set NSExtensionAttributes as below but it don't work, my APP doesn't show in the Maps's share sheet. NSExtensionAttributes NSExtensionActivationRule …
Fred Zhang
  • 115
  • 1
  • 2
  • 8
3
votes
1 answer

Action Extension - Multiple NSURLSession

Im trying to upload images from the Photo app through Action Extension. I use NSURLSession to upload it in background. Here is the code i use. var configName = "com.myapp.uploadImage" var config =…
Shob-Z
  • 891
  • 6
  • 26
3
votes
2 answers

Share Extension: Grab thumbnail in custom view controller like SLComposeServiceViewController

I'm trying to grab thumbnail image from a website so I can paste it on my custom UIViewController for share extension. I know SLComposeServiceViewController does this for free, but I have to make a customized view controller. Is there any way to do…
Genki
  • 3,055
  • 2
  • 29
  • 42
3
votes
1 answer

How to disable App Extensions?

If I don't want the Pinterest app extension to show up in my UIActivityViewController, how can I remove it? Previously I could just add the activity type to the excludedActivityTypes array. That doesn't seem to work with app extensions.
3
votes
1 answer

Apps hosting extensions must comply with the App Extension Programming Guide

I submitted the iPhone app to AppStore with iOS 8 share extension. It is rejected from AppStore reason is “Share” extension is full screen and not constrained. I am creating custom UI for extension by extending UIViewController and using Xib. My app…
Rayan Dsouza
  • 71
  • 1
  • 5
3
votes
1 answer

iOS 8 Custom Keyboard with external bluetooth keyboard

I now have a working iOS 8 Custom Keyboard to input Chinese, and I am looking for the possibility to use this keyboard with external bluetooth keyboard. My first question is if anyone has successfully used external keyboard with custom keyboard? I…
Evan Chu
  • 2,190
  • 2
  • 20
  • 23
2
votes
0 answers

How to exclude all other file types besides images and videos in my iOS Share Extension's SUBQUERY?

My Share extension should accept a maximum of 4 items, images and videos combined. The extension should not accept other file types like PDFs. So far this is my activation rule query. NSExtensionAttributes
Samuël
  • 1,147
  • 1
  • 10
  • 17
2
votes
2 answers

Userdefaults can not retrieve custom Struct in Share Extension

I have an App and also a Share Extension. Between them I share data via UserDefaults. But it stopped working all of a sudden. Only bools or Strings can now be retrieved inside the Share Extension but when trying to retrieve a Custom Struct it is…
Chris
  • 1,828
  • 6
  • 40
  • 108
2
votes
2 answers

iOS Share Extension App Group error passing file URL in react-native

I have an iOS share extension in my react-native app. I'm using react-native-share-menu to implement it and I'm using a custom RN view for the share dialog as per the component documentation. My custom share dialog works but as soon as I try to pass…
scgough
  • 5,099
  • 3
  • 30
  • 48
2
votes
1 answer

iOS - Share image using UIActivityViewController

I'm reading whatsapp documentation and I wonder if there is a basic example of Share Extension implementation using UIActivityViewController as is mentioned in docs. I've tried instantiate an UIActivityViewController object but I can't find an uti…
Ricardo
  • 7,921
  • 14
  • 64
  • 111
2
votes
1 answer

How to show Storyboard UI using NSExtensionPrincipalClass for sharing extension

I am implementing share extension functionality in iOS app. I am able to use "NSExtensionPrincipalClass" in share extension's Info.plist file. And I have added custom MyViewController i.e. import UIKit @objc(MyViewController) class…
RohitK
  • 1,444
  • 1
  • 14
  • 37