ios8-share-extension

IOS Share extension: how to read from notes posts

纵饮孤独 提交于 2019-12-19 17:06:16
问题 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 NSExtensionActivationRule. Supposedly, in my share extension target, i should add NSExtensionActivationSupportsText key to NSExtensionActivationRule in info.plist, which i did, but still my app extension doesn't show up in the share sheet. According to https://developer

IOS Share extension: how to read from notes posts

我的未来我决定 提交于 2019-12-19 17:03:08
问题 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 NSExtensionActivationRule. Supposedly, in my share extension target, i should add NSExtensionActivationSupportsText key to NSExtensionActivationRule in info.plist, which i did, but still my app extension doesn't show up in the share sheet. According to https://developer

Code to share file path/file between a share extension and iOS app

大憨熊 提交于 2019-12-19 05:09:03
问题 I have added a share extension for my app say SAMPLE (already exists on the app store), called lets say SAMPLESHARE. Whenever a user, say takes a picture and tries to share it, I want them to go through a view controller of an Open In functionality, and not get the Post dialogue from Apple, basically bypassing it. So I am trying to share the picture between the share extension and my app, by creating an app group that is shared between the app and plugin and then passing the file paths to the

Share Extension to open containing app

半世苍凉 提交于 2019-12-17 09:33:45
问题 I want to create an Android Style share feature for my app. I created a share extension which gets called when you select pictures inside the stock photo app and press share. Now I want those pictures to be sent to the main app and get handled over there. My question is now: Can iOS open my app after a button is pressed on the share extension window? How do I get the picture files inside my main app? 回答1: Currently there's no way to do this. A share extension cannot open the containing app.

Can not Hide Keyboard with SLComposeServiceViewController

青春壹個敷衍的年華 提交于 2019-12-13 02:01:10
问题 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 Share Extension doesn't launch and Safari hangs. I've tried a few ways to prevent the keyboard from launching -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; self.textView.text = @"\n Place Holder Text"; self.textView

How to create a react native ios share extension app

允我心安 提交于 2019-12-12 10:41:19
问题 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 than Safari in react-native for iOS? 回答1: This is because the default setup if this package is for sharing urls to your app. You need to change/extend/rewrite NSExtensionActivationRule in Config.plist of your share extension and stay with react-native

Retrieve google user from ios extension

拈花ヽ惹草 提交于 2019-12-12 08:18:27
问题 I am trying to create a share extension for my application which requires to login to Google from the extension. I've setup the sharing group keychain and am able to write from the main application and read the extension target. But I can't login to Google from the extension because GIDSignIn.sharedInstance().hasAuthInKeychain() always returns false. Is there any way to login to Google from an extension and how do I do that? Any help would be appreciated. 回答1: 1. In Bridging-Header.h import

iOS 8 share extension show shared image issue

ⅰ亾dé卋堺 提交于 2019-12-11 10:41:22
问题 I have a problem with displaying image in my UIImageView. So this is how I get images in ShareViewController: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; for (NSItemProvider* itemProvider in ((NSExtensionItem*)self.extensionContext.inputItems[0]).attachments ) { if([itemProvider hasItemConformingToTypeIdentifier:@"public.image"]) { ++counter; [itemProvider loadItemForTypeIdentifier:@"public.image" options:nil completionHandler: ^(id<NSSecureCoding> item, NSError

Share Extension is not working in Chrome

血红的双手。 提交于 2019-12-09 13:17:01
问题 I am working on Share Extension Here is code of info.plist file . this is working fine in Safari, But not in Chrome. <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <dict> <key>NSExtensionActivationSupportsImageWithMaxCount</key> <integer>0</integer> <key>NSExtensionActivationSupportsWebURLWithMaxCount</key> <integer>1</integer> </dict> </dict> <key>NSExtensionMainStoryboard</key> <string>MainInterface</string> <key

iOS 8 Share Extension not working on device

橙三吉。 提交于 2019-12-08 20:16:44
问题 I have creat a new target Share Extension in xcode , then I run it on my device. I don't know why when I run my Share Extension on my devices (iPhone 5c, iPhone 5s, iPhone 6) the won't show. Pls help me! Any suggestions on how to fix this would be greatly appreciated. I have creat New/Target/ Share Extension I run it with app Notes on my device and then my extension not show 回答1: I had the same issue and I solved it with changing the "Deployment Target" of the extension to a value below the