Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Why are not all android actions supported? #115

Open
sohelmk opened this issue Aug 17, 2020 · 2 comments
Open

Why are not all android actions supported? #115

sohelmk opened this issue Aug 17, 2020 · 2 comments

Comments

@sohelmk
Copy link

sohelmk commented Aug 17, 2020

Hi @darryncampbell,
Thanks for the great work. This plugin worked but we needed to send an implicit intent to another app using action FLAG_ACTIVITY_NEW_TASK or ACTION_MAIN, but could not find these actions.
Please let us know if there is any specific reason why these are not supported?
Or if we fork your plugin and add these actions would they work?

Thanks a lot,
SK

@darryncampbell
Copy link
Owner

FLAG_ACTIVITY_NEW_TASK is a flag, not an action... you can specify flags but I can't find a sample... but you should be able to define an int array of flags that will be processed by https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/blob/master/src/android/IntentShim.java#L521 e.g. for flag_activity_new_task put flags: [268435456] in your JSON object.

The action is just a string so you can specify android.intent.action.MAIN for ACTION_MAIN

@sohelmk
Copy link
Author

sohelmk commented Aug 17, 2020

Thanks a lot @darryncampbell we will try and update, but its good to hear that you think its possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants