ios8-share-extension

iOS Share vs Action App Extension

狂风中的少年 提交于 2019-11-29 19:13:04
I want to implement an app extension, but I can't decide if I should implement it as a Share Extension or Action Extension. The documentation doesn't say much about the differences, just this: Share (iOS and OS X) : Post to a sharing website or share content with others Action (iOS and OS X; UI and non-UI variants) : Manipulate or view content originating in a host app Are there technical differences as well (e.g. does an Action extension allow me to do something that the Share extension doesn't), or is it merely a convention Apple wants you to follow to make things less confusing to users? It

How to debug ios share extension?

泄露秘密 提交于 2019-11-29 15:08:51
问题 How to print logs in Xcode's lldb debugger from extension? 回答1: Simple answer: log messages are not printed, however you can stop at breakpoints, and then print everything using lldb . Run your app While the app is running, go to Debug -> Attach to process by PID or name Write the name or bundle id of your extension and click attach Then run your extension with any way you can do this on your device. Wait for debugger to stop the extension at breakpoint. 回答2: You shouldn't need to attach to

Share between an iOS extension and it's containing app with the keychain?

感情迁移 提交于 2019-11-29 12:35:07
问题 I understand I can share data between my share extension and its containing app by enabling app groups and using NSUserDefaults (see Sharing data between an iOS 8 share extension and main app). However, the data I am storing is sensitive, so I hoped to use the keychain. So the user would enter account information in the containing app, and then the share extension would read that data to perform the intended sharing action. Does anyone know if this is possible? My first crack at it suggests

Xcode 6 Archiving and get a warning “Skipping copy phase strip ,binary is code signed” when add “share extension” to target

时光总嘲笑我的痴心妄想 提交于 2019-11-29 06:21:04
问题 I got this warning when I added share extension to my project and archiving it warning: skipping copy phase strip, binary is code signed: /Users/xxxx/xxx/xxxx/Build/xxxx/Build/Intermediates/ArchiveIntermediates/xxxx/IntermediateBui ldFilesPath/UninstalledProducts/XXX.appex/XXXX The old question does not provide and insight to correct this . So I decided to ask again. Warning during archive App with iOS 8 Extension in Xcode 6 Can someone please explain why this is happening ? Is it because the

iOS 8 Share Extension custom view controller size

巧了我就是萌 提交于 2019-11-28 18:41:19
I'm building a share extension for my iOS app and I can't use the default SLComposeServiceViewController , so I created (in the storyboard) a basic UIViewController and embedded in a navigation controller. I get to present it, dismiss it etc but it's always full screen. I would like to make it look more like a dialog. I have tried using self.preferredContentSize on my view controller, tried Use Preferred Explicit Size on the navigation controller in Interface Builder, but it doesn't work. This can be done easily and directly using the storyboard but is not immediately obvious. There is no need

iOS Share vs Action App Extension

北战南征 提交于 2019-11-28 14:38:08
问题 I want to implement an app extension, but I can't decide if I should implement it as a Share Extension or Action Extension. The documentation doesn't say much about the differences, just this: Share (iOS and OS X) : Post to a sharing website or share content with others Action (iOS and OS X; UI and non-UI variants) : Manipulate or view content originating in a host app Are there technical differences as well (e.g. does an Action extension allow me to do something that the Share extension

“This item cannot be shared. Please select a different item.” WhatsApp iOS share extension failure message

*爱你&永不变心* 提交于 2019-11-28 04:30:47
This bug is fixed by WhatsApp team on 23rd May, 2016 (build no. 2.16.4). Unable to share NSString object using UIActivityViewController to WhatsApp. I tried to share using below code. But once contact is selected from the list, it shows an alert displaying " This item cannot be shared. Please select a different item. " CODE NSString *shareText = @"Temp text to share"; NSArray *itemsToShare = @[shareText]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil]; I am facing this problem after updating WhatsApp to

iOS 8 Share Extension custom view controller size

為{幸葍}努か 提交于 2019-11-27 11:09:51
问题 I'm building a share extension for my iOS app and I can't use the default SLComposeServiceViewController , so I created (in the storyboard) a basic UIViewController and embedded in a navigation controller. I get to present it, dismiss it etc but it's always full screen. I would like to make it look more like a dialog. I have tried using self.preferredContentSize on my view controller, tried Use Preferred Explicit Size on the navigation controller in Interface Builder, but it doesn't work. 回答1

Share Extension to open containing app

强颜欢笑 提交于 2019-11-27 08:03:41
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? Currently there's no way to do this. A share extension cannot open the containing app. The intended approach for share extensions is that they handle all of the necessary work themselves.

App is not showing in the share menu of shared options in shared extension in iOS8

送分小仙女□ 提交于 2019-11-27 02:46:18
问题 I'm developing share extension for my app. Every thing is fine, but i'm facing one main problem, my app is not in the share menu while sharing from photos app. Below is the plist of my shared extension. It's not showing in the list, below is the screenshot: But when i go to more option, set the switch of my extension off and on, now it is showing in the list, But i need to do it every time, below are the screenshots: Every time i ran the extension from X-Code, It's not showing the share menu,