which notification payload use in node js

Easy Step 2 left your payload Ready your ios and android on app background running

              
          info = {
                    "notification": {
                    "title": "App Name",
                    "body": 'Body text here,
                    "text": 'text here,
                    "msg": 'Send Message Here,
               },
               "data": {
               "title": "App Name",                                                       
              
                },
                ios_badgeType: "Increase",
                ios_badgeCount: 1

};

       
          Info2 = {
                   "notification": {
                   "title": "App Name",
                   "body": 'Body text here',
          },
                 //This is PAYLOAD FOR ForeGround Notification
          "data": {
                   "title": "App Name",
                   "text": 'Text here',
          },
 
};

     sendPush.send(id, info, Info2);

Thankyou this is Only Code In node js Send Notification

I am help with you COMET Plzzz

1 thought on “which notification payload use in node js”

Leave a Comment