Skip to content

Actions #123

@ColorTwist

Description

@ColorTwist

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions