Question about proper way to deal with notification actions #428
-
I have a Maui app that has notifications working exactly how I want them to. Except when user clears android notifications it pops default action for all of my apps notifications. So I have it when video is downloaded it shows a notification with progress bar, and when it is done the default action on tap is to go and start playback. But atm when user clicks clear all on Samsung phone inside notification bar using built in OS clear button it fires all default commands for every notification in tray. So that means my app starts playing the video for every notifications. Which I don't want to happen. Am I doing something wrong? Or is there a way to detect clear all from OS? And then not fire every default action? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well I figured it out!
The above code works for me in simulator. Fingers crossed it works on physical devices. If I clear all notifications using button in notification drawer it does not launch all the default actions below those lines. Which is what I intended. Glad I caught that before pushing to production! |
Beta Was this translation helpful? Give feedback.
Well I figured it out!
The above code works for me in simulator. Fingers crossed it works on physical devices. If I clear all notifications using button in notification drawer it does not launch all the default actions below those lines. Which is what I intended. Glad I caught that before pushing to production!