universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

Add support to remove channels on Android #117

Open fahadinno opened 4 years ago

fahadinno commented 4 years ago

Hello!

At the moment the plugin doesn't support removing channels by id where native Android have the API for that https://developer.android.com/reference/android/app/NotificationManager#deleteNotificationChannel(java.lang.String) this is beneficial in case of having a channels before and using UTNotification with channels will create duplicated ones where it could confuse the clients.

Thanks in advance!

yuriy-universal-ivanov commented 4 years ago

Hi @fahadinno,

Makes sense indeed. Would automated deletion of the channels which have disappeared from the profiles list work good enough for you?

fahadinno commented 4 years ago

Hello Yuriy!

That will work perfectly, specially if you change the channel in UTNotification, however, if you use another plugin and you have already created a channel maybe add the API to remove the old ones with the ID?

Best regards, Fahad