Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Notification Icon not appearing on React-native expo sdk 38 project

$
0
0

I'm having a serious issue using Expo Notifications on SDK 38.0.0. My notification icon does not appear on Android either IOS like this: https://imgur.com/a/6y32HnO. When I remove the flag: "useNextNotificationsApi": true from app.json, my icon appears on Android but, the listener to receive the notification doesn't work anymore. My listener is:

const notificationListener = useRef<Subscription>();notificationListener.current = Notifications.addNotificationReceivedListener(notification => {            // setNotification(notification);            console.log(TAG,'::addNotificationReceivedListener:',notification)            notification.request.content.        });

I'm using react-native with Typescript, and expo SDK 38.0.0, react-native: 0.62.2expo-notifications:"^0.5.0",


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>