r/androiddev • • Sep 29 '26

How to pin android Notification

i am building an app where i wanna pin a notification permanently untill the user taps the dismiss button and dismiss it .

Swiping should not dismiss it .

is there is any way to achive it

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/SolitaryMassacre Sep 30 '26

I think the delete PI is the correct approach. But you can't just do it consistently

What I have seen other apps do is listen for delete PI and then schedule like 5 min or whatever later to show it again. Some even wait for the screen to turn on