如何在离子推送通知中添加标题,操作按钮

Aru*_*una 5 ionic-framework cordova-plugins visual-studio-cordova

我正在使用离子框架实现推送通知.我正在关注发送离子文档给出的推送示例.根据那个发送请求应该是这样的

{
  "tokens":[
    "b284a6f7545368d2d3f753263e3e2f2b7795be5263ed7c95017f628730edeaad",
    "d609f7cba82fdd0a568d5ada649cddc5ebb65f08e7fc72599d8d47390bfc0f20"
  ],
  "notification":{
    "alert":"Hello World!",
    "ios":{
      "badge":1,
      "sound":"ping.aiff",
      "expiry": 1423238641,
      "priority": 10,
      "contentAvailable": true,
      "payload":{
        "key1":"value",
        "key2":"value"
      }
    },
    "android":{
      "collapseKey":"foo",
      "delayWhileIdle":true,
      "timeToLive":300,
      "payload":{
        "key1":"value",
        "key2":"value"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

我希望ios通知有标题,正文和动作按钮

"alert" : {
     "body" : "This is a message from server",
     "action-loc-key" : "VIEW",
     "action" : [
        {
           "id" : "buttonTapped",
           "title" : "View"
        }
     ]
  }
Run Code Online (Sandbox Code Playgroud)

是否可以使用离子推送通知服务?任何帮助请或任何其他API这样做?