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

Share.shareSingle not working #1479

Closed
canpoyrazoglu opened this issue Nov 4, 2023 · 5 comments
Closed

Share.shareSingle not working #1479

canpoyrazoglu opened this issue Nov 4, 2023 · 5 comments
Labels
bug stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@canpoyrazoglu
Copy link

Steps to reproduce

Have the following code:

await Share.shareSingle({
       url: URL //link to my valid URL,
       title: 'My App Name',
       social: target,
   });
  • When the target is Facebook it works though it doesn't open the app, it opens Facebook in Safari.
  • When target is Twitter, nothing happens. Objective-C side shows success though nothing comes up. Twitter app isn't installed though I'd expect Twitter to open in Safari (just like Facebook does) which doesn't happen.
  • When target is Instagram, Instagram app opens up but brings up a share sheet with the latest photo in my camera roll.
  • When target is Facebook Messenger, (I don't have it installed) it brings up app store page for Facebook Messenger to install.
  • When target is Telegram, (I don't have it installed) it brings up app store page for Telegram to install.
  • When target is WhatsApp, (I don't have it installed) nothing happens. If it opens App Store page if Facebook Messenger and Telegram if they are not installed, I'd expect the same behavior with WhatsApp too.

Expected behavior

Target social platform's app, or if not installed, web version if available, should open with my URL prepopulated.

Actual behavior

Share.shareSingle works only with Facebook, and even in that case it opens up Facebook web in Safari instead of the Facebook app, which is installed on my device.

Environment

  • React Native version: 0.72.4
  • React Native platform + platform version: iOS 17.1
  • Typescript version (if using typescript): 5.0.4

react-native-share

Version: 9.4.1

@snowdigital
Copy link

snowdigital commented Nov 21, 2023

add [Facebook] to issue title

I think its related to facebook have different scheme:// and its not listed in your info.plist LSApplicationQueriesSchemes

  • add LSApplicationQueriesSchemes for all shares in docs

@pasaninsharp
Copy link

@canpoyrazoglu I am having same issue on android. Did you find a fix?

@nejdetkadir
Copy link

I'm having same issue on IOS 🔴

@gyhyfj
Copy link

gyhyfj commented Jan 16, 2024

same problem

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open

@github-actions github-actions bot added the stale There has been a lack of activity on this issue and it may be closed soon. label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

5 participants