Questions tagged [share-extension]
198 questions
2
votes
1 answer
How to get shared_preferences in Share Extension
I want to know how to get shared_preferences in iOS share extension (swift code).
I use 'shared_preferences' to store session date in this code.
SharedPreferences.getInstance().setString("session", "session_sata")
And, I tried to get…

gnxvw
- 404
- 1
- 9
- 23
2
votes
0 answers
Pass build settings from app target to dependency
In my project, I have two apps and one share extension. The share extension should be embedded in both apps, but with slight differences between the apps (different bundle ID and some settings in the Info.plist).
Is there a way to tell which app is…

Frank Rupprecht
- 9,191
- 31
- 56
2
votes
1 answer
Modify Podfile in Nativescript application
I've added a share extension to my Nativescript app, and this extension needs a Pod.
So I need to modify the Podfile of the Nativescript app to target my share extension too with the required Pod, something like this:
target :MyApp do
platform…

Macarthurval
- 178
- 11
2
votes
2 answers
iOS share extension display name
My app supports 2 different share extensions, and I distinguish between them using the CFBundleDisplayName in the Info.plist file for both extensions. This worked fine in iOS12, but in iOS13, it seems that it only shows the app's display name…

Z S
- 7,039
- 12
- 53
- 105
2
votes
0 answers
How can I use the action extension to grab contents of webpage?
I am trying to use an action extension in my iOS app to allow users to save a shopping item into a UITableView. I would like the share extension to work like this:
The user opens a webpage in Safari (eg. this page on Best Buy)
The user taps the…

michaelderiso
- 145
- 1
- 1
- 12
2
votes
1 answer
Flutter: add Share Extension
Problem
I have add iOS Share Extension into a very simple Flutter project,
My code setup with device on feature branch, I also know bitcode in flutter is not ready yet:
Run Target: Share Extension on device
ld:…

JerryZhou
- 4,566
- 3
- 37
- 60
2
votes
2 answers
Firebase Firestore not working in Swift Share Extension
I am building a Share Extension in Swift which saves a document to Firestore. So far I have been able to authenticate the correct user via keychain sharing and app groups. I can also get a documentID from a new document reference:
var ref =…

mnearents
- 646
- 1
- 6
- 31
2
votes
0 answers
I am using https://github.com/alinz/react-native-share-extension my app got crash(keep stoping) for bot ios and android
https://github.com/alinz/react-native-share-extension
please check i have followed all steps but, i got crash issue in iOS and Android both
is there any other working module for that? it will be really helpful for me thanks

Chirag Panchal
- 41
- 1
- 3
2
votes
1 answer
Share extension crashing when trying to crop very large image
I am using TOCropViewController for cropping my image. This is working fine in the main app. The problem is when I try to use this library in share extension it is not working. By not working I mean, when I try to crop a very large image (image…

user2413621
- 2,916
- 7
- 24
- 28
2
votes
1 answer
How can an Xcode Share Extension connected to one Parent target be disconnected and associated with another?
I have inherited a legacy Swift 3 app that features a Share Extension. The client would like to roll out both a production and a testing version of the app with each release: the same app but each having a different api url. I've been using this…

Joseph Beuys' Mum
- 2,395
- 2
- 24
- 50
2
votes
3 answers
Save image to documents folder using Share Extension
My goal (besides learning how to write an iOS app extension) is to allow a user to share an image using the share button from a variety of apps including Photos and automatically rename them. Lastly then I want to save the image to the "documents"…

Chris
- 1,418
- 2
- 16
- 34
2
votes
1 answer
ios: Share Extension does not allow me to share .txt or .csv file to my app
I have a share extension in my app. It does share photos from photos app and .pdf files from files app. But it does not work on .txt or .csv files. What do I have to do to allow it?

Pan Mluvčí
- 1,242
- 2
- 21
- 42
2
votes
1 answer
Ios share extension does not work when installed by testflight but works installed by xcode
Installed with testflight the application does appear in the list of target applications to share an image with. When I select my application icon in the list I do get a normal Post dialog. After pressing "Post" in the dialog the application does…

vldmr-bus
- 53
- 6
2
votes
1 answer
How to show Storyboard UI using NSExtensionPrincipalClass for sharing extension
I am implementing share extension functionality in iOS app. I am able to use "NSExtensionPrincipalClass" in share extension's Info.plist file. And I have added custom MyViewController i.e.
import UIKit
@objc(MyViewController)
class…

RohitK
- 1,444
- 1
- 14
- 37
2
votes
0 answers
NSItemProvider loadItemForTypeIdentifier causing a memory leak?
I have the following issue:
I am trying to share an image from Messenger (I have implemented a share-extension) to my application and I am using this code to load the image:
[provider loadItemForTypeIdentifier:identifier options:nil…

scourGINHO
- 699
- 2
- 12
- 31