calcazar / react-native-push-notification-CE

The community edition of the push notification library (by Zo0r) for applications made with React Native
MIT License
52 stars 23 forks source link

[Android] foreground and userInteraction not filled correctly #10

Open avencat opened 6 years ago

avencat commented 6 years ago

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
}