share-extension

How to officially handle unauthenticated users in an iOS share extension?

三世轮回 提交于 2019-12-29 08:04:19
问题 That is, what is an idiomatic way to do this that is prescribed by Apple? For any suggestion, please explain HOW that should be done and/or provide a link to official guides. This should be a common enough scenario, but I was only able to find workarounds. Approaching this from the other end, I know that UserDefaults(suiteName:) and Keychain services can be used from the containing app to share information about the authenticated user with the extension, but what if the user installs the app

Use of SVProgressHUD in share extension

本小妞迷上赌 提交于 2019-12-24 19:23:34
问题 I use SVProgressHUD in an iOS app and it's working perfectly. I'd like to use it also for the share extension of this app but it does not show app. I'm using a custom view for the share extension view and here is the code I use to call SVProgressHUD. Note that printing the upload progress works fine. What am I doing wrong? Thanks. class ShareViewController: UIViewController { ... Alamofire.upload(multipartFormData: { multipartFormData in multipartFormData.append(jpgImageData!, withName: "file

iOS Share Extension with custom View Controller

[亡魂溺海] 提交于 2019-12-21 09:06:19
问题 I'm creating a Share Extension to allow to share Youtube videos into my app and am having a hard time to present my custom UI smoothly. Instead of the default view controller which just contains the raw Youtube URL, I want to do something visually similar to Facebook's extension, displaying a thumbnail and the video title. My first attempt at it was editing the MainInterface storyboard ShareViewController, but doing so briefly shows my custom interface and thet get's "overriden" by the

iOS Share Extension kUTTypeMovie get thumbnail

久未见 提交于 2019-12-13 07:08:57
问题 Hey there i am having trouble while sharing video from photos using my share extension. My problem is that i wanted to get the thumbnail & size of the video in my share extension hosted by Photos app. Any help is appreciable, thanks in advance. 回答1: UIViewController of Share Extension have a property: NSExtensionContext *extensionContext; NSExtensionContext have a property: NSArray *inputItems; Which have a 0-indexed object of NSExtensionItem class Next, NSExtension Item have a property:

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 Share Extension flow

微笑、不失礼 提交于 2019-12-10 19:54:01
问题 I have problems with creating share extension like share extension of the Pinterest app. When user is not logged to the containing app the share extension only presents alert with an option to log in and cancel . Where in code decide which view controller to show in my shared extension. I see this like I need to check authorization status from shared container and if this status is not logged I need to present alert controller. If status is logged I need to show my main view controller

Using React Native within an iOS share extension

ぃ、小莉子 提交于 2019-12-07 03:40:18
问题 Jumping off of this facebook/react-native#1626 GitHub issue, I had a question about setting up a React Native view within an iOS share extension I posted an example GitHub repo that demonstrates the problem, summarized below. So far the proof-of-concept setup is pretty straightforward, but I feel like I'm missing something very simple. In my react-native init scaffolded Xcode project I created a new Share Extension target, and within it linked the appropriate React Native static libraries (

(This Item Cannot Be Shared, Please Select a Different Item) Sharing A Simple Text To Whats App Is Not Working Since Updated To iOS 9.3 in Swift

允我心安 提交于 2019-12-06 11:23:40
问题 This code used to work fine till the last update of XCode 7.3 and IOS 9.3, I tried searching over the internet but got nothing, So if anyone can help me out here would be a great help. Thank You The code I am using to share the text in Swift is this:- let objectsToShare = [TextToShare] let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil) //New Excluded Activities Code activityVC.excludedActivityTypes = [UIActivityTypeAirDrop,

Share extension react native - expo

寵の児 提交于 2019-12-05 12:43:30
I have created a react-native app using expo . Now I am looking for share-extension to the app to import CSV data from email attachment to my app. I have tried npm package but that does not work for me(I was not able to build my project with that npm package in Xcode) I think react-native or expo does not have any share API In this picture, you can see how he got the option to import data into the app. I understand that without share extension API, I think react-native and Expo both are useless because you can create the app but you don't expand it. Looking for the solution or any other

Using React Native within an iOS share extension

我怕爱的太早我们不能终老 提交于 2019-12-05 06:15:39
Jumping off of this facebook/react-native#1626 GitHub issue , I had a question about setting up a React Native view within an iOS share extension I posted an example GitHub repo that demonstrates the problem, summarized below. So far the proof-of-concept setup is pretty straightforward, but I feel like I'm missing something very simple. In my react-native init scaffolded Xcode project I created a new Share Extension target, and within it linked the appropriate React Native static libraries ( libReact.a , libRCTWebSocket.a , etc.). This gets our project compiling for a very simple