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
321 stars 369 forks source link

iOS example app does not seem to work #296

Open basvdijk opened 2 months ago

basvdijk commented 2 months ago

When I run the app from the example folder on https://github.com/KasemJaffer/receive_sharing_intent/tree/master/example on iOS it does not seem to work.

When sharing an image:

I tested this on an iPhone 15 Pro Max emulator running iOS 17.4

wanwanland commented 2 months ago

me to 😢 I tested this on an iPhone 14 Pro actual machine

olerhan commented 1 month ago

me to 😢 I checked again and again to see what I might have done wrong. Has anyone found a solution?

basvdijk commented 1 month ago

My biggest concern at the moment is reliability of this feature / package. It has been 2 weeks without reply to this issue. I am holding back to use this package for now. If I use this in production and it breaks, I do not want to risk to have a broken feature for weeks.

olerhan commented 1 month ago

I managed to get it to work. While the package publisher could have provided clearer instructions, it's important to understand some key points when adding packages to your application. After trying many forked versions of this package and examining the package codes, I've gained full experience with it. The issue is actually quite simple. Here are the key steps:

Pay attention to the Info.plist files. Insert the required codes correctly. Provide the host and extension IDs in the correct format. After filling in the ShareViewController content, be sure to run pod install in the iOS directory before running the application. Follow the cycle described by the publisher carefully. If you are not using custom IDs, fill them in manually in the Info.plist table. The original package works fine and is more compact than other packages. It also has a supportive community.

I hope this helps others who are facing similar issues.

tamara-jovanoska commented 1 month ago

for me what made it work is adding the custom IDs manually for both Runner and Sharing Extension under Build Settings, what @olerhan suggested above.

Screenshot 2024-06-03 at 16 31 18