SDK 41 Android notifications don't work

Please provide the following:

  1. SDK Version: 41
  2. Platforms(Android/iOS/web/all): Android

Snack example from docs don’t work with notifications from expo API (sendPushNotification function in demo or Push notifications tool) but works with scheduleNotificationAsync.
What is the error in the demo?

Reproducible demo: Push Notifications - Snack

Device: Redmi Note 8 Pro

My problem was in that I made upgrade SDK from 37 to 41 and my project didn’t include it:

Notifications.setNotificationHandler({
  handleNotification: async () => ({
    shouldShowAlert: true,
    shouldPlaySound: true,
    shouldSetBadge: true
  })
});

Without setNotificationHandler and with SDK41 notifications don’t show when app in foreground, but with SDK40 it works.
I added setNotificationHandler and now it works for me.

P.S. It still doesn’t work in Snack for me. Regardless app is in foreground or background.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.