Notifications expo 38 dont work

Please provide the following:

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

Hello I upgraded from SDK 35 to 38 and I have a situation where my Notifications expo cannot receive tokens anymore, don’t know if anyone has encountered this and how to fix it.

Hi,
Not many information here, but did you take care of changing your code ? With SDK 38 expo notification doesn’t work the same way, see the docs:

https://docs.expo.io/versions/latest/sdk/notifications/

1 Like

Hey @vithanhlam,

As ncailleux stated, there isn’t much information to go off of here so that limits our ability to help. Did you add the useNextNotificationsApi property to your app.json for Android? I see you mention iOS as well though so I’d be curious to see your code as there are not any additional changes needed to app.json.

Cheers,
Adam

1 Like

Thank you for your feedback, I added useNextNotificationsAp in app.js and it works above Expo tool, but when I export the APK file and install it on another device, when clicking on it doesn’t work?

"useNextNotificationsApi": true,
"googleServicesFile": "./google-services.json",
{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-native-community/netinfo": "5.9.2",
    "add": "^2.0.6",
    "expo": "^38.0.0",
    "expo-image-picker": "~8.3.0",
    "expo-permissions": "~9.0.1",
    "expo-secure-store": "~9.0.1",
    "react": "16.11.0",
    "react-dom": "16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-elements": "^1.2.6",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-image-picker": "^1.1.0",
    "react-native-paper": "^3.0.0",
    "react-native-reanimated": "^1.9.0",
    "react-native-screen": "^1.0.1",
    "react-native-screens": "^2.10.1",
    "react-native-unimodules": "^0.10.1",
    "react-native-upload-image-expo": "^1.2.3",
    "react-native-vector-icons": "^6.6.0",
    "react-native-web": "~0.11.7",
    "react-native-webview": "9.4.0",
    "react-navigation": "^4.0.10",
    "react-navigation-material-bottom-tabs": "^2.1.3",
    "react-navigation-stack": "^1.10.3",
    "react-navigation-tabs": "^2.5.6",
    "expo-notifications": "~0.3.3"
  },
  "devDependencies": {
    "babel-preset-expo": "^8.2.3"
  },
  "private": true
}

What do you mean when clicking on it? A notification in the OS tray? Remember saying ‘doesn’t work’ is very uninformative and makes it harder to receive help! Please elaborate on what is occurring.