pusher / push-notifications-flutter

Official Pusher Beams Flutter client plugin (iOS, Android and Web), receive notifications easily on your Flutter application with Pusher Beams.
https://pub.dev/packages/pusher_beams
MIT License
10 stars 21 forks source link

[Bug] Notification tap message not received when app's opened from terminated state #40

Closed rutvik110 closed 8 months ago

rutvik110 commented 1 year ago

Description

I'm not able to receive the notification message that opened the app from terminated state. I'm trying to use getInitialMessage , but its not returning the notification data but returns null.

  final Map<String, dynamic>? pusherMessage =
        await PusherBeams.instance.getInitialMessage();

This is currently tested on ios, I'll check on android once and add the android stats later.

ali-raza-flutter commented 1 year ago

Facing same issue in our application

Nithsua commented 12 months ago

Any update on this issue?

kayumarie commented 12 months ago

Any update indeed?

chris-cmsoft commented 11 months ago

@rutvik110 Did you ever find a solution to this ?

benw-pusher commented 10 months ago

I believe this is a bug in the library and have escalated this to the engineering team for review and resolution. We'll update this issue when complete.

rutvik110 commented 10 months ago

Thanx!

rutvik110 commented 10 months ago

@rutvik110 Did you ever find a solution to this ?

Not really. We decided to not tackle it from our side as we were occupied with other things and this wasn't that much of a critical issue in our case.

benw-pusher commented 8 months ago

In order to receive data the published payload must contain an [info] key in the [data] key:

{
  "interests":["hello"],
  "apns": {
    "aps": {
      "alert": {"title":"Hello", "body":"Hello, world!"},
    },
   "data": {
      "info": { "name": "george" }
    }
  },
  "fcm": {
    "notification": {"title":"Hello", "body":"Hello, world!"},
    "data": {
      "info": { "name": "george" }
    }
  }
}