Push plugin payload

I have installed push plugin successfully

ionic cordova plugin add phonegap-plugin-push --variable SENDER_ID=XXXXXXXXX npm install --save @ionic-native/push

$ ionic info

@ionic/cli-plugin-cordova       : 1.6.1
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 2.0.2
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.5.3


Node : v7.10.0
OS   : Linux 4.4
npm  : 4.2.0 

it sends push notifications as it should with basic layout successfully, I receive this notificaiton layout with icon title and message:

I want to display custom image and action buttons so I used this payload but still I receive default notification layout without my image and actions.

  var message = {
    to: deviceId,
    data: {
      forceShow: true,
      icon: "default",
      title: "Big Picture",
      message: "This is my big picture message",
      style: "picture",
      priority: 1,
      image: "http://36.media.tumblr.com/c066cc2238103856c9ac506faa6f3bc2/tumblr_nmstmqtuo81tssmyno1_1280.jpg"
    actions: [
      { icon: "emailGuests", title: "Dismiss", callback: "app.emailGuests", foreground: true },
      { icon: "snooze", title: "Answer", callback: "app.snooze", foreground: false },

After checking the plugin.xml file I noticed it has version 1.10.5
<plugin name="phonegap-plugin-push" spec="^1.10.5">

But phonegap-plugin-push has 2.x latest version, could this be issue?
how can I send actions and custom image etc with this plugin?

I don’t know why you’re using the old version, but i am implementing the push notification too with that plugin and my advice will be use the actual release (2.0.0), always better, they got fixed older version bugs and added more functionality.
Here is the one i am using:

<plugin name="phonegap-plugin-push" spec="^2.0.0">
   <variable name="SENDER_ID" value="myID" />
1 Like