Android Question Push notification, only if there is no notification

Facilauto Juan

Member
Licensed User
Longtime User
Hello there!

I've managed to put a push notification in my notification area. There is a sound when the push notification is put there, which is nice. But the sound sounds every time the query is executed.

I want to know how can I check if a notification is already in the notification area so I can skip the "put notification" method in that iteration.

Thanks in advance.
 

wl

Well-Known Member
Licensed User
Longtime User
I think the following should work:

Create a new notification, set the defaultsound to false and do a Notify with the same ID as the original.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I don't know how these push notifications work but if you create the notification object yourself, just set. AlertOnce to true.
 
Upvote 0
Top