invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.83k stars 214 forks source link

Android Quit State not receiving notifications / notifee data #873

Closed Darren120 closed 1 year ago

Darren120 commented 1 year ago
 await messaging().sendMulticast({
      tokens: [
        "e6tsH1DPTX6nQQaoMeflEn:APA91bHRqP0tm35YT4Psq3NFyfdswpS5oGMyvKXpGnM71ywvOreUniV6rgnYat8WKGYTSt5j6gOD7uYFKqPV7xBu5Lf4ybt2PdfjPJhoTKzmNDYr-gKYD385caL4D6cOHmz9YOb0M6O3",
      ],
      data: {
        notifee: JSON.stringify({
          body: "This message was sent via FCM!",
          android: {
            channelId: "default",
            actions: [
              {
                title: "Mark as Read",
                pressAction: {
                  id: "read",
                },
              },
            ],
          },
        }),
      },
      android: {
// Including notification will work but no data parsed from notifee
        notification: {
          priority: "high",
        },
        priority: "high",
      },
    });

Foreground and background works, but quit state on android doesn't. setting priority high on notiifcation will show in quit state but notifee no longer parses data, thus just showing an naked notification

Darren120 commented 1 year ago

fixed. damn this package needs a docs revamp.. will do it in my free time.