Huawei EMUI 8 Oreo - notification channel - tone

Some users report on Huawei EMUI 8.0 Oreo that the Notification Channel does not have the option to change the “Sound” / “Notification Tone” tone from the app!

As in official documents, the developer can no longer change the settings .
So, how can I add an option for Huawei phones to change the “Notification Tone” again?

And does anyone know why the hell Huawei removed this feature?
I can not find official documents from Huawei, as we can now allow the user to change the tone of the notification.

The official docs to which I mean:
https://developer.android.com/reference/android/app/NotificationChannel.html

https://developer.android.com/reference/android/app/NotificationChannel.html#setSound(android.net.Uri , android.media.AudioAttributes)

+8
source share
1 answer

We recently encountered the same problem. This is not a good solution, but WhatsApp does the same. Basically, we show the selection of the ringtone inside our application, and then delete and recreate the notification channel with the new channel identifier and the selected uri ringtone. You can copy most of the settings made to the channel to a new one, except for do not disturb.

As I said, this is not a good solution, and I don’t know what will happen if the channel is recreated a lot. But I hope the melody does not change too often.

Note. The notification settings screen displays the number of deleted channels as a spam prevention mechanism.

0
source

Source: https://habr.com/ru/post/1274333/


All Articles