Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOs: App not showing in the share targets section when sharing text #25

Open
giorgio79 opened this issue Aug 7, 2022 · 7 comments
Open

Comments

@giorgio79
Copy link

Hello,

I am trying to get this plugin work for "text" on iOS, but the app is not appearing in the share list. Any tips what could be wrong?

@JoshJuncker
Copy link
Collaborator

@giorgio79 Make sure to follow step number 3 in the readme. The share extension plist declares what types it should show up for. If you have followed all the steps, also make sure to scroll to the end of the suggested apps and tap the ... more/add button and see if your app is in the list of other apps.

The specific part of the step in the readme that tells it to allow sharing of text is this part quoted below.
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.text"

@giorgio79
Copy link
Author

Thx Josh for coming back. I have all those settings. I found a post on stackoverflow with peeps having a similar issue specifically for text

https://stackoverflow.com/questions/34548322/ios-share-extension-how-to-read-from-notes-posts

It looks like text needs some additional plist settings
NSExtensionActivationDictionaryVersion

Playing with this now. Alternatively, would you be willing to check my code here on GitHub? I would happily pay for an hour of your time to look through the stuff :)

@giorgio79
Copy link
Author

Managed to get the app to show up by setting the deployment target to 9 everywhere in the Runner targets and build settings.
KasemJaffer/receive_sharing_intent#216

@giorgio79 giorgio79 reopened this Aug 10, 2022
@giorgio79
Copy link
Author

Hmm spoke a bit soon, as the app now appears in the share targets, but nothing happens when I tap on it in the Simulator. Leaving it open for now.

@giorgio79
Copy link
Author

just reading this thread #2 will try some of the recommended fixes and also play with the sample repo app

@khjde1207
Copy link

Any solution?

@VVucenic
Copy link

For me moving "Embed Foundation Extensions" in Build Phases above "Embed Frameworks" solved this. No idea why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants