https://kotlinlang.org logo
#android
Title
# android
j

Jakub Blaha

03/25/2019, 10:46 AM
Hello there, I am making a application that resends a notification for personal purposes and I have already managed to duplicate the notification, however I cannot find a way how to duplicate the channel since my device is running android 8.1. Does anyone here know about any easy to use method/function to duplicate a channel from
StatusBarNotification
?
c

Corey Johnson

03/25/2019, 3:49 PM
Why are you wanting to duplicate the channel? I believe that channels are intended to provide a good user experience so that they can unsubscribe from notifications that aren't useful to them. So circumventing that would probably be an anti pattern
1
j

Jakub Blaha

03/25/2019, 8:00 PM
I am making a Mi Band3 Notification fixing application for personal purposes, because some of the characters in my language appear as questionmarks in on the Mi Band, since it's not localized properly. I wanna duplicate the channel, so I can get the priority and whether it should make a sound/vibrate, etc. The notification gets removed immideately, right after the Mifit app (the app that sends the notifications to the actual band) registers it.
Actually, it doesn't have to make any sound, I just wanted to select which notifications will be fixed by enabling/disabling the channel for my app.
c

Corey Johnson

03/26/2019, 2:35 PM
I don't think this is a common enough use case for an existing library to handle. I'm not sure of any way except manually tracking what channels are used for notifications 😞
3 Views