Questions tagged [share-extension]
198 questions
3
votes
1 answer
Share Selected Text - iOS Share Extension
I want to be able to share selected text, but my extension only appears when clicking on the share icon (and then it populates the field with the page title). I want my extension to appear when the user selects text and clicks "Share..." (like in…

connorvo
- 761
- 2
- 7
- 21
3
votes
2 answers
How to officially handle unauthenticated users in an iOS share extension?
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…

toraritte
- 6,300
- 3
- 46
- 67
3
votes
5 answers
Failed to set plugin placeholders for com.xxx after adding share extension in Xcode 9
While running the code after adding share extension

IOSDev_RKM
- 41
- 2
- 4
3
votes
0 answers
Proper way to extract part of class in order to use it in framework
I am creating a share extension for my iOS app. I am going to create an embedded framework to share my code between me app and extension.
But I want to let extension to only be aware of code that it needs. The problem is that I already have classes…

Ermat Alymbaev
- 721
- 6
- 15
3
votes
2 answers
Upload to firebase storage from share extension
Is it possible to use the firebase cocoapods from within a share extension to check the current logged in user and make an upload to firebase storage?
It all works from the main app just trying to make this possible from an extension as well?

russell
- 176
- 1
- 12
3
votes
1 answer
Share attachment from Mail App with Share extension in iOS
Now i'm working on the app that should implement share extension to share attachments from Mail App. It should support different file extensions (almost all types of documents). From Apple docs I understood that i have to use Predicate in my…

Artiom
- 538
- 12
- 25
3
votes
1 answer
NSExtensionActivationRule for iOS app extension that can share everything
I implemented a Share-Extension that works find with all sorts of things that you want to share. So I want my user to be able to share URLs, Text, Images, Videos, Any other files and even combinations of that (like from the notes app with text and a…

Georg
- 3,664
- 3
- 34
- 75
3
votes
1 answer
Create iOS share extension that opens my app
What I want to archive in the end, is the possibility for the user to open every single file in my app.
So I went ahead and added public.data and public.content as Supported Document Types as described here:…

Georg
- 3,664
- 3
- 34
- 75
3
votes
1 answer
"ProjectName-Swift.h" file not found - Share Extension
We've been mixing swift with our mostly Obj-C project and it has been working fine. But when I need to add a .m file to the build phases of my extension that is importing "ProjectName-Swift.h", the extension cannot find that file. How can I fix…

Nyne99
- 31
- 1
- 3
3
votes
1 answer
IOS 9 - Share Extension Compulsory to get public.file-url
I have an issue in share extension with 2 different scenario in iOS9 (working fine with iOS8) --- (wants to share PDF):
First goto the mail app with PDF attachment mail-
Long press the PDF attachment then select my application from share sheet.…

Akshar Darji
- 397
- 2
- 12
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
0 answers
NSPersistentCloudKitContainer and AppGroups
can someone help me to find out how to use AppGroups with NSPersistentCloudKitContainer?
I'm using CoreData in my iOS app and then want to access it in a share extension. My persistence looks like that:
struct PersistenceController {
static let…

gurehbgui
- 14,236
- 32
- 106
- 178
2
votes
0 answers
React-Native-Share-Menu | Error: couldn't find provider on M1 Macbooks
I'm writing a share extension for ReactNative built app.
I'm using ReactNativeShareMenu package.
Whenever I build this app on a M1 architecture MacBook, I get the following error:
Error: couldn't find provider
But on intel MacBooks, it works…

mzaink
- 261
- 4
- 10
2
votes
2 answers
How can i get pdf version of webpage if NSExtensionJavaScriptPreprocessingFile is set?
I am making a Share extension for all possible types.
Now I am stuck with sharing from Safari.
I'm using "NSExtensionJavaScriptPreprocessingFile" to get title, favicon and html of common pages. But this option changes type of attachment from…

Nik.206
- 21
- 4
2
votes
0 answers
How can I respond to files from a Share Extension in an app using a SwiftUI 2.0 lifecycle?
I'm building an app using the SwiftUI 2.0 lifecycle on iOS14.
I haven't used them before but I've added a Share Extension target to my project & have configured it to only open the specific types of files I want to be able to open in my app.
When…

mralexhay
- 1,164
- 1
- 10
- 16