cannot read property of 'apply' undefined when m getting expo notification

Please provide the following:

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

componentDidMount() {
this._notificationSubscription = Notifications.addListener(this._handleNotification());
// this.CheckIfLoggedin();
}
_handleNotification = notification => {
console.log(“dsdjkasdasd”+notification)
if(notification==undefined)
{
this.CheckIfLoggedin();
}
else {
console.log(‘in’)
console.log(“sadhsdbnsdbasdbvasbd”+JSON.stringify(notification.data.uri));
if(notification.origin==‘selected’)
{
this.props.navigation.navigate(notification.data.uri)
}
}

};

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