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

[FEATURE] Add openPackage function for android #1902

Closed

Conversation

tavosansal
Copy link

Currently there is no way to open the main activity for an android app. If that app does not handle a VIEW intent from a url then it is impossible to open the app at all (for example the instagram app).
This PR adds a function to the App plugin so that it is able to open an app via its package name. If the app is not installed, the call to the plugin will fail just like App.openUrl

@jcesarmobile
Copy link
Member

Thanks for the PR, but that was actually a bug, I've fixed it in the linked PR.
openUrl was already accepting packages, but not handling what you mention about apps that don't handle VIEW intents. If you check canOpenUrl, it was returning true for instagram package.

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

Successfully merging this pull request may close these issues.

2 participants