Faced with a problem of not opening Android notification channel settings.
In some cases, the settings did not open. Empirically, it was possible to find out that the settings did not open if the application did not send at least one notification. The problem is that the notification channel was created when the notification was sent, but before that it did not exist.
Solution – Creating a notification channel when application start. Just add the init notification channel on onCreate method in MainActivity.
Copy to Clipboard
It safe, android docs says:
Creating an existing notification channel with its original values performs no operation, so it’s safe to call this code when starting an app.
Leave A Comment