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

isAvailable returns false, but I have SnapChat and Instagram installed on my phone. #54

Open
vishnau31 opened this issue Jul 24, 2021 · 1 comment

Comments

@vishnau31
Copy link

vishnau31 commented Jul 24, 2021

And when I run the function without putting a condition of isAvailable,

Possible Unhandled Promise Rejection (id: 4):
Error: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
@retyui
Copy link

retyui commented Jul 30, 2022

you need to add a QUERY_ALL_PACKAGES permission:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

more: react-native-share/react-native-share#1009 (comment)

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