useNextNotificationsApi not allowed

Please provide the following:

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

I am using manged flow and I am trying to use push notifications in my app. I have build a standalone android app and get the push token and successfully send a push notification to the device.

The problem left is that Notifications.addNotificationReceivedListener and Notifications.addNotificationResponseReceivedListener are not called.

I now read about useNextNotificationsApi, but I am not sure whether I need this as my IDE (IntelliJ) says that it is not allowed in the app.json. Should I still put it in?

At the moment I am doing all push related stuff in a special screen:

Is that a problem? Should it be in App.tsx?

I have just found out that IntelliJ uses There is no yet. Does anybody know where to find expo-37.0.0.json?

expo install expo-notifications will install version ~0.3.3 instead of the more recent 0.5.0. Is that a problem?

Hey @denniske1001,

You should add the useNextNotificationsApi to your app.json. Using expo install installs the appropriate and safe version of the module corresponding to your SDK version so this is not an issue. We will update the install target when appropriate.


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