chrisonline,
@chrisonline@androiddev.social avatar

Android 14 has sadly changed that a notification can't be set as non-dismissable:

Changes the way users experience non-dismissable notifications by allowing users to dismiss notifications action even when the Notification.FLAG_ONGOING_EVENT flag is set.
This does not apply when the phone is locked, or if the user selects Clear all.

Another restriction I don't understand from Google :-(

MobileOak,
@MobileOak@fosstodon.org avatar

@chrisonline they need a separate place for showing "these are long running processes that are happening" - using the persistent notification for that was never a good design decision. It was confusing to users why the notification couldn't be dismissed. Instead now we have this irritating approach that doesn't really solve the root problem.

chrisonline,
@chrisonline@androiddev.social avatar

@MobileOak I fully agree, but in my app I need a non-dismissable notification because it is a reminder.
The reminder was only dismissable with an action button.
So you can't accendentially remove the notification.

Now this is sadly possible and I get, of course, some bad reviews in Google Play because of this. But the fault is at Google :-(

amokrane,
@amokrane@androiddev.social avatar

@chrisonline I am thinking that dismissing a reminder notification makes sense as a way to acknowledge it . Or is the notification sticky until the user completes a given action? In that case, could you just push it again after dismissal? Then, give users options to set their preferences in terms of notification frequency.

chrisonline,
@chrisonline@androiddev.social avatar

@amokrane Yes the notification should be sticky until the user completes the reminder.
So you can't accendentially remove the notification. This is important because you would miss your reminder otherwise.

As you mentioned I need to code again a workaround to show the notification after the user swipes it away.
But it is very sad that I need to code this for such a small feature who was working since early days of Android :-(

  • All
  • Subscribed
  • Moderated
  • Favorites
  • android
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines