ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
43 stars 46 forks source link

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

Open giorgio79 opened 2 years ago

giorgio79 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

giorgio79 commented 2 years ago

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 commented 2 years ago

just reading this thread https://github.com/ShoutSocial/share_handler/issues/2 will try some of the recommended fixes and also play with the sample repo app

khjde1207 commented 2 years ago

Any solution?