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
334 stars 392 forks source link

iOS example app does not seem to work #296

Open basvdijk opened 6 months ago

basvdijk commented 6 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 6 months ago

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

olerhan commented 5 months ago

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

basvdijk commented 5 months 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 5 months 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 5 months 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
Guscccc commented 4 months ago

Same here. I cloned the example and it doesn't work for iOS either. The app doesn't receive the shared files. Confirmed on iOS 17.5 simulator.

IndyNiels commented 3 months ago

@tamara-jovanoska I solved it the same way (tested on physical iOS 17.5.1). @olerhan and @tamara-jovanoska, your comments could helped clarify instructions from point 6 from the publisher.

bigzhu commented 3 months ago

I think the issue is not caused by the configuration, but by this:

olerhan commented 3 months ago

For me everything still works fine. Everyone just needs to be more careful about using the package. This issue (296 or 294) is not a real issue…