Android 8.x crashes if the notification is received while app is closed. This is due to channel creation, which leads to NullPointerException if done while app is not initially running. The notification channel creation should be done before creating the notification.
Android 8.x crashes if the notification is received while app is closed. This is due to channel creation, which leads to NullPointerException if done while app is not initially running. The notification channel creation should be done before creating the notification.