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

No text data when sharing from certain apps to expo share extension #56

Closed
nhuesmann opened this issue Nov 12, 2024 · 3 comments
Closed

Comments

@nhuesmann
Copy link

This issue has to do with using another iOS app's share functionality to share to my react native app running expo share extension. The specific app in question is Home Depot. How to reproduce:

  1. Install the Home Depot app
  2. Nav to a product screen in the home depot app and tap the share button in the upper right of the toolbar
  3. Choose the react native app running expo share extension
  4. Observe that InitialProps has a text property present, but it is an empty string
  5. Dismiss share extension and try sharing again from within the home depot app, but this time choose any other source (copy, messages, mail). Notice there is text content there.

I've tried enabling all activationRules in app.json, carefully following all steps in the docs, and the issue persists. I haven't tried a preprocessing js file because the presence of said file was breaking functionality previously. Also note that sharing from Safari/other browsers as well as just plain text are all working fine.

My phone is running the latest iOS at time of writing (18.1).

Not sure why the share extension is failing to capture this text, but it'd be great to get this working. Thanks!

@MaxAst
Copy link
Owner

MaxAst commented Nov 12, 2024

Hi Nathan, will have a look, thanks for reporting! And also thanks a lot for the generous sponsorship @nhuesmann! ❤️😊

@MaxAst
Copy link
Owner

MaxAst commented Dec 10, 2024

Hi @nhuesmann, apologies for getting back to this so late. I just created a PR with a new kitchen sink example. I ran it with a development build on my device and tried it on Amazon and Mr Porter, where I was able to retrieve both, text and URL, when using their share functionality. Unfortunately I can't download Home Depot in Germany, but I would expect their sharing functionality works similar. Have you tried it with the latest version (2.0.1)?

Amazon Mr Porter
IMG_8691 IMG_8692

@MaxAst
Copy link
Owner

MaxAst commented Dec 30, 2024

Closing this for now as I'm pretty sure it's just a matter of choosing the right values in activationRules. Lmk if you still run into issues @nhuesmann

@MaxAst MaxAst closed this as completed Dec 30, 2024
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

2 participants