Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS example app does not seem to work #296

Open
basvdijk opened this issue May 7, 2024 · 9 comments
Open

iOS example app does not seem to work #296

basvdijk opened this issue May 7, 2024 · 9 comments

Comments

@basvdijk
Copy link

basvdijk commented May 7, 2024

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:

  • You see the app in the list
    image
  • Then for a split second you see this window pop up
    image
  • Then nothing happens

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

@wanwanland
Copy link

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

@olerhan
Copy link

olerhan commented May 24, 2024

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

@basvdijk
Copy link
Author

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
Copy link

olerhan commented May 25, 2024

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
Copy link

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
Copy link

Guscccc commented Jul 19, 2024

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
Copy link

@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
Copy link

bigzhu commented Aug 19, 2024

@olerhan
Copy link

olerhan commented Aug 19, 2024

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…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants