ios8-share-extension

iOS share extension dismiss keyboard

末鹿安然 提交于 2019-12-08 04:13:20
问题 I'm implementing a share extension for my app, so far everything is going good except I can't seem to dismiss the keyboard that automatically opens using the default layout/storyboard. I'm keeping the default design/layout (SLComposeServiceViewController) which includes the preview image and UITextview, the UITextview automatically gets in focus which opens the keyboard. Normally this is fine, but if you're not logged in my app I display an UIAlertController saying you need to login to share.

Action Extension Trying to Retrieve a File

瘦欲@ 提交于 2019-12-08 03:58:21
问题 I'm trying to create an Action Extension in iOS 8. Starting with a new project I created a single view application and added a new target for the Action Extension. The default Action Extension template is configured to display an image. When I share from Photos the image shows up on the view controller for the extension so the basic plumbing is all working. The real use case is that I want to share a text file from Dropbox (or Air Sharing, or whatever) to the app and have the app process the

iOS Share Extension with custom SUBQUERY for NSExtensionActivationRule

跟風遠走 提交于 2019-12-07 09:38:27
问题 I have implemented a share extension for an iOS App. The extension works with images and videos successfully. Now I am looking for a way to make the extension work for more file types, such as PDF's, Spreadsheets (Excel, Pages, etc.), Documents (MS Word, other similar types), Presentations (Powerpoint, Pages, etc.), simple text files (Txt, xml, .c, .h, any others) and web page URLS. The problem is that I want to be able to activate the extension with the following rules: 1. Images and Videos

How to extract a zip file and get the extracted components in a Share Extension in Swift

[亡魂溺海] 提交于 2019-12-07 05:09:33
问题 I need to do the following- I have another app in which i will export the users config(.txt) and contacts(.vcf) in a zip format. In the second app i have a share extension to get the exported zip and in the share extension, i need to extract the zip file and get both the txt and vcf files and then upload them to a parse server. I have done till opening the exported zip in the share extension. but i could not get the zip extracted. I couldn't get the answer in internet. Here is my

iOS 8 extension dependencies issues. Importing one project file to extension view controller

只愿长相守 提交于 2019-12-07 03:39:00
问题 I am working on iOS 8 extension. I read many manuals and all of them just show how simple add extension to your app, and seems that's enough. But here are many pitfalls: After adding your extension you will need to import some of your classes to view controller that were created when you added new extension target. The big use here that you will need add all of them and if you have huge project it's not a simple task. Solution can be select extension target then in Build Phases -> Compile

Open URL scheme from iOS extension

◇◆丶佛笑我妖孽 提交于 2019-12-06 16:12:11
问题 I have this code that return success = NO [self.extensionContext openURL:[NSURL URLWithString:@"URLApp://"] completionHandler:^(BOOL success) { [self.extensionContext completeRequestReturningItems:nil completionHandler:nil]; }]; So and I can't open containing app from my share extension when I debug it. I've configured main target of contained app like this: I've tested open URLApp:// from safari and it works for me. I also used some examples provided here to understand how to open containing

iOS share extension dismiss keyboard

耗尽温柔 提交于 2019-12-06 15:43:34
I'm implementing a share extension for my app, so far everything is going good except I can't seem to dismiss the keyboard that automatically opens using the default layout/storyboard. I'm keeping the default design/layout (SLComposeServiceViewController) which includes the preview image and UITextview, the UITextview automatically gets in focus which opens the keyboard. Normally this is fine, but if you're not logged in my app I display an UIAlertController saying you need to login to share. The problem is the keyboard opens at the same time as the alert. I've tried [self.view endEditing:YES]

NSExtension Share Extension limit Photos count

故事扮演 提交于 2019-12-06 14:17:40
问题 I have developed a Share Extension and import Photos and Notes from Photos and Notes App. I want to limit the count of Photos which can be import to only 10 but for Photos i am able to select unlimited photos. Below is the query from info.plist of extension. Can anyone look into it and guide me to correct query. <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <string>SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( $extensionItem

ios share extension unable to get shared URL from chrome

丶灬走出姿态 提交于 2019-12-06 14:17:29
问题 I am trying to implement share extension for my app. Its working good in safari browser and youtube app (i.e) when i share from these apps i get the public.url which is the url to be shared. When i tried the same in chrome it was not showing the extension. When i added the NSExtensionActivationSupportsText under the NSExtensionActivationRule to true its started showing. But when i try to share the contents i am unable to fetch the URL String which is to be shared. I get only contentText. I

iOS Share Extension not working after deploy

匆匆过客 提交于 2019-12-05 21:40:48
I have created a Share extension which working fine while I am running it though xcode on device or simulator. But when I creating IPA or using TestFlight, it is not passing my list from host app to extension. I am creating this extension for posting an image in host app ( without uploading on server just in local sqlite ). For this I have checked, App Group and it is fine, cross checked the provisioning certificate and it is also attached with app group. If you have any idea please let me know. The entitlement file needs to have the group id information and same should be reflected in build