react-native-push-notification-CE icon indicating copy to clipboard operation
react-native-push-notification-CE copied to clipboard

[Android] foreground and userInteraction not filled correctly

Open avencat opened this issue 6 years ago • 0 comments

Hi, On Android, when I receive a notification, on the onNotification method, the userInteraction field is missing so I get:

{
  …notification,
  foreground: true,
}

instead of:

{
  …notification,
  foreground: true,
  userInteraction: false,
}

Another issue (more annoying) is when I tap on the notification on the Notification Center and the app is open in foreground, I get:

{
  …notification,
  foreground: false,
  userInteraction: true,
}

instead of:

{
  …notification,
  foreground: true,
  userInteraction: true
}

avencat avatar May 30 '18 15:05 avencat