Please provide the following:
- SDK Version: 36.0.0
- Platforms(Android):
When i try to use getPresentedNotificationsAsync() method in expo notification I am getting this error.
code:
Reproducible Demo
import * as Notifications from ‘expo-notifications’
getPushNotificationsAsync = async () => {
let notification = Notifications.getPresentedNotificationsAsync()
console.log(‘notification in Live chat’, notification)
}
I looked in the documentation the function exists but when i try to use in my project i am getting error
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating ‘_NotificationPresenterModule.default.getPresentedNotificationsAsync’)]