FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

Category action buttons not showing

Open stesvis opened this issue 3 years ago • 4 comments

🐛 Bug Report

I send a push notification to android and iOS specifying click_action but when I receive it i do not see any notification tray button.

Expected behavior

Notification shows with tray button

Reproduction steps

  • Set up everything as explained here: https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/NotificationActions.md
  • I use Firebase Admin to send notifications (to multiple devices, this is a MulticastMessage):
{
  "Tokens": [
    "eEK8smTvsErmvdAhHK3F9v:APA91bFDUeQMDEcBnUHhaLKaIcv4r_SwviUA9fDQcw7HuJkxAkII6OjXOySKiZrLvzbsQG5EQlz4rbRGKYVmwyZ5CD0_SuHTP8ihvudaksXDl7aHZAjJUUgmlMjE93-S9DAi7F1VdpL_"
  ],
  "Data": {
    "Title": "Check-in Reminder",
    "Message": "Tap here to respond with a check-in.",
    "ScheduledCheckIn": "97",
    "click_action": "scheduled_check_in"
  },
  "Notification": {
    "title": "Check-in Reminder",
    "body": "Tap here to respond with a check-in.",
    "image": null
  },
  "Android": {
    "collapse_key": null,
    "restricted_package_name": null,
    "data": {
      "click_action": "scheduled_check_in"
    },
    "notification": {
      "title": null,
      "body": null,
      "icon": null,
      "color": null,
      "sound": null,
      "tag": null,
      "image": null,
      "click_action": "scheduled_check_in",
      "title_loc_key": null,
      "title_loc_args": null,
      "body_loc_key": null,
      "body_loc_args": null,
      "channel_id": null
    },
    "fcm_options": null,
    "priority": null,
    "ttl": null
  },
  "Webpush": null,
  "Apns": {
    "headers": null,
    "fcm_options": null,
    "payload": {
      "aps": {
        "badge": null,
        "category": "scheduled_check_in",
        "thread-id": null,
        "alert": null,
        "sound": "default",
        "content-available": 1,
        "mutable-content": null
      }
    }
  }
}

To be sure, I am passing click_action in Data and in Android.Notification and in Android.Data....and in neither case I get the button to show up.

Configuration

Version: 3.3.10

Platform:

  • [x] :iphone: iOS
  • [x] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [x] :monkey: Xamarin.Forms

stesvis avatar Aug 17 '21 23:08 stesvis

Same

feduke-nukem avatar Nov 11 '21 08:11 feduke-nukem

@stesvis have you solved this problem?

feduke-nukem avatar Nov 11 '21 11:11 feduke-nukem

I switched to OneSignal. It seems much easier and it gets updated regularly..

On Thu., Nov. 11, 2021, 4:06 a.m. Федор Благодырь @.***> wrote:

@stesvis https://github.com/stesvis have you solved this problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CrossGeeks/FirebasePushNotificationPlugin/issues/395#issuecomment-966211747, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOIEXBKKIA2FKH75QBPGPTULOPU3ANCNFSM5CK2POSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

stesvis avatar Nov 13 '21 05:11 stesvis

Facing the same problem :(

adrianpbv avatar Apr 06 '23 21:04 adrianpbv