receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

Alternative that is maintained https://pub.dev/packages/share_handler

Open JoshJuncker opened this issue 2 years ago • 6 comments

Much appreciation for this package. It sadly isn't maintained and hasn't seen a release for over a year. I decided to create a new package, heavily influenced from this one. It has the added benefit of an api to add specific conversations in your app as share suggestions/targets (eg. share directly to Billy in my app). Give it a look. Feel free to contribute as well.

https://pub.dev/packages/share_handler

JoshJuncker avatar May 17 '22 19:05 JoshJuncker

@JoshJuncker, thanks for your job! Unfortunately, it's not worked for me... I have followed all steps in the guidance, but containing app doesn't receive any data

SergiiMytakii avatar May 24 '22 10:05 SergiiMytakii

@SergiiMytakii Sorry for the late reply. I didn't get notified of you mention or issue for some reason. Anyways, I've responded to you comments/issue over in the share_handler repository.

JoshJuncker avatar May 29 '22 19:05 JoshJuncker

Sounds promising, although it looks like I have to change a fair amount to switch to it from this one? Does yours solve the "Cannot open PDF files on iOS" issue?

I am manually modifying the SharedMediaFile path values to remove the leading "file://", but a PDF shared from say the Files app still can't be opened in my app.

mobikats avatar Jun 02 '22 10:06 mobikats

@mobikats I successfully share pdf files to my app via the plugin. In my app I then immediately upload the pdf to s3 as my app is cloud based. But it wouldn't be able to upload it to s3 if it couldn't read the file. Try cloning the repo and trying the sample. You could do minimal modification of the sample to handle a shared pdf as you wanted. Anyways, if you decide to go for it and run into issues, definitely create an issue on the share_handler repository and I can look into it.

JoshJuncker avatar Jun 02 '22 15:06 JoshJuncker

Thanks @JoshJuncker , I fixed it in the end it turned out to be an issue caused by URL encoding of the path. https://github.com/KasemJaffer/receive_sharing_intent/issues/141#issuecomment-1144746060

mobikats avatar Jun 02 '22 15:06 mobikats

@mobikats Great job! I attempted various packages, but couldn't make them function. Share Handler, however, works perfectly! Many thanks for simplifying the majority of the logic within the package.

abdu292 avatar Oct 18 '23 04:10 abdu292