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

Plugin stopped working when just setting "intent" to start an activity from another app #158

Open
csampalis opened this issue Feb 3, 2021 · 0 comments

Comments

@csampalis
Copy link

LaunchIntent = new Intent();
if(params.has("intent")) {
 ComponentName ci = new ComponentName(cordova.getActivity().getPackageName(),  params.getString("intent"));
     LaunchIntent.setComponent(ci);
}

I tried updating the plugin and now just setting "intent" stopped working. By checking the code I discovered that this part is causing the problem. Why set the component using cordova.getActivity().getPackageName()? Now I need to specify the "component" property because the activity I am trying to start is not from my app. Isn't new Intent(intentString); the right way?

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

1 participant