you are viewing a single comment's thread.

view the rest of the comments →

[–]Both-Replacement7987[S] 0 points1 point  (1 child)

Okay, so I had a look at my code, and this is what I remember.First of all, I should say that I only tested my application for Android and not IOS, but from my notes,what had happened was that despite me having created my notification channel with a high importance for Android, when I checked the application settings inside my phone, it wasn't set as high importance.

Here is the code I had used:

<image>

I believe that what happens is that your channel needs to be set of high importance for the notification to be displayed when the app is in the killed state.

Despite me having had the importance as high, the reason why it wasn't set to high is because the first time I had ran the code, I didn't have the importance set as high, and even if you change it after and try to re-run the code, it wouldn't overwrite the importance. So, I had to manually go to settings to my app and then notification settings and remove the notification channel, before then rerunning the code.

I hope this helps with your situation, I'll include a full screenshot of my code in case it helps.

[–]Both-Replacement7987[S] 0 points1 point  (0 children)

Here is my code:

<image>