Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

How to add buttons in ionic FCM push notification

$
0
0

Hello
I would like to send a push notification with 2 buttons: subscribe and unsubscribe.
I am receiving the notification, but it does not have the buttons.
here is the code of the notification:

let notification = {
      "notification": {
        "title": title,
        "body": msg,
        "sound": "default",
        "click_action": "FCM_PLUGIN_ACTIVITY",
      }, 
      "actions": [
          {
            "title": "Subscribe",
            "action": "subscribe",
          },
          {
            "title": "Unsubscribe",
            "action": "unsubscribe"
          }
        ]
      ,
        "android":{
        "ttl":"2419200s"
      },
      "to":'/topics/'+topic,
      "priority": "high"
    };

Help me please

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>