Skip to content

Actions #123

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

Open
ColorTwist opened this issue Feb 13, 2019 · 2 comments
Open

Actions #123

ColorTwist opened this issue Feb 13, 2019 · 2 comments

Comments

@ColorTwist
Copy link

ColorTwist commented Feb 13, 2019

Can someone please explain the purpose of Actions with this plugin?
And what does Foreground = false means?

I assume that OnAction function is triggered when a user pressed Push notification for us to detect what was pressed and do some stuff.
I did a few tests, and OnAction never gets triggered, i am using Android Oreo 8.0.
Did anyone manage to make OnAction work?

 LocalNotification.Action action1 = new LocalNotification.Action("background", "In Background", this);
 action1.Foreground = false;

And the OnAction:

public void OnAction(string identifier)
    {
        Debug.Log("Got action " + identifier);
    }
@DragonplusOuyang
Copy link

I did test android 5.0-8.0, But the OnAction never triggered.

@ColorTwist
Copy link
Author

Thanks for the update @DragonplusOuyang

It's a core malfunction.
If anyone managed to make it work, please update.

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