Parse.com を使用して、Cloud Code 経由でプッシュ通知を送信しています。これらの通知は「同期に送信」されるため、折りたたむことができます。折りたたみ可能とは、デバイスの電源がオフになっている場合、またはプッシュ通知を受信していない場合に、これらの通知が蓄積されないようにすることを意味します。電話の電源が入ったときに、同期するように指示する未配信のプッシュが大量に表示される必要はありません。必要なのは 1 つだけです。Cloud Code でこれを行う方法はありません。プッシュ通知を折りたたみ可能にする方法はありますか? これが私のCloudCodeです。
Parse.Cloud.afterSave("Tagnames", function (request) {
   //Get the Customer that is pointed to in the AlarmDefinitions object.
  query = new Parse.Query("Customers");
  query.get(request.object.get("customer").id, {
    success : function (cust) {
      //We have the customer pointed to by the AlarmDefinition.
      //Create the json payload data we will send to our clients.
      console.log("Customer=" + cust.get("customer"));
      console.log("action:" + "com.jrb.scadaalarm.rcvr.UPDATE_TAGNAMES");
      //send the push so that all customers can get notified.
      Parse.Push.send({
        channels : [cust.get("customer")],
        data: {
          action: "com.jrb.scadaalarm.rcvr.UPDATE_TAGNAMES"
        }
      }, {
        success : function () {
          // Push was successful
          console.log("Push successful.");
        },
        error : function (error) {
          // Handle error
          console.error("Push failed: " + error.code + " : " + error.message);
        }
      });
      //
    },
    error : function (error) {
      console.error("Got an error " + error.code + " : " + error.message);
    }
  });
});