KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

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

Open JoshJuncker opened 2 years ago

JoshJuncker commented 2 years ago

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

SergiiMytakii commented 2 years ago

@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

JoshJuncker commented 2 years ago

@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.

mobikats commented 2 years ago

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.

JoshJuncker commented 2 years ago

@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.

mobikats commented 2 years ago

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

abdu292 commented 10 months ago

@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.