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

How to add action button to your push notification request

$
0
0

@chetankabra8 wrote:

bellow is my notification message which i am sending to ionic push server :slight_smile:
var notification = {
"tokens": tokens,
"profile": "nisu",
"notification": {
"title": "Drive Reques ",
"message": "Driver Request Received",
"ios": {
"message": "Hi You have received a Ride Request",
"payload":{
"$state": "notify",
"r_id" : req.body.r_id,
"r_srcaddress" : req.body.r_srcaddress,
"r_destaddress" : req.body.r_destaddress,
"r_amount" : req.body.r_amount,
"r_distance" : req.body.r_distance,
"r_approx_time" : req.body.r_approx_time
}
},
"android": {
"message": "Hi You have received a Ride Request",
"payload":
{
"$state": "notify",
"r_id" : req.body.r_id,
"r_srcaddress" : req.body.r_srcaddress,
"r_destaddress" : req.body.r_destaddress,
"r_amount" : req.body.r_amount,
"r_distance" : req.body.r_distance,
"r_approx_time" : req.body.r_approx_time
}
}
}
};

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49087

Trending Articles



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