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

how do i set pending intent ? #1

Open
chekolasnergee opened this issue Oct 18, 2016 · 1 comment
Open

how do i set pending intent ? #1

chekolasnergee opened this issue Oct 18, 2016 · 1 comment

Comments

@chekolasnergee
Copy link

very nice notification,..

could you give sample with click_action?

thanks,

@AndroFlo
Copy link

AndroFlo commented Sep 8, 2017

`
builder.setContentAction(new NotificationEntry.Action.OnActionListener() {
@OverRide
public boolean onAction(NotificationEntry entry, NotificationEntry.Action action) {

                try {

                    notification.contentIntent.send();

                } catch (PendingIntent.CanceledException e) {
                    e.printStackTrace();
                }

                return false;
            }
        });

`

notification come from public void onNotificationPosted(StatusBarNotification sbn) method

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