In part 10 of the notifications tutorial, we will learn how to delete notification channels.
For this, we simply have to call deleteNotificationChannel on the NotificationManager, where we pass the id of the channel we want to delete. Alternatively, we can call deleteNotificationChannelGroup to delete a whole NotificationChannelGroup at once.
If we create a notification channel with the same id after deleting it,
the system will recreate the same channel with the previous user settings. To avoid that we try to work around this by deleting old channels and creating new ones with different ids and our own settings, the system displays a number of deleted channels as "categories deleted" in the notification settings as a spam prevention mechanism.
Watch the whole playlist:
• Playlist
Example code for this part:
https://gist.github.com/codinginflow/...
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
/ codinginflo. .
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
/ discord
📣 Follow Coding in Flow on other sites:
Facebook: / codinginflow
Instagram: / codinginflow
TikTok: / codinginflow
Twitter: / codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: info@codinginflow.com
On this page of the site you can watch the video online Notifications Tutorial Part 10 - DELETE NOTIFICATION CHANNELS - Android Studio Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Coding in Flow 10 November 2018, share the link with friends and acquaintances, this video has already been watched 18,711 times on youtube and it was liked by 175 viewers. Enjoy your viewing!