Hi, I would like to dismiss my pushWoosh notification after user clicks my "share" button added to notification. If this would be "standard" android notification, issued by me I would be able to just call cancel () with this notification id.

But in case of the pushWoosh I am not the one who issues notification and I can't find the way to get notification id (the idea was to call cancel(id) in the place where I handle pending intent started by action button). Or maybe there is some other way to tell the notification that it should be dismissed?

I add this "share" button using notificationBuilder.addAction() in my implementation of AbsNotificationFactory - the same way as docs say.

Any help would be appreciated.

Cheers, Piotr

asked 17 Oct '16, 11:14
piotrP's gravatar image

piotrP
112

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×446
×326

question asked: 17 Oct '16, 11:14

question was seen: 2,251 times

last updated: 17 Oct '16, 11:14