I have below payload which i am sending as push notification where ClientID is additional data:
$msg = array
(
‘message’ => ‘here is a message. message’,
‘title’ => ‘This is a title. title’,
‘subtitle’ => ‘This is a subtitle. subtitle’,
‘tickerText’ => ‘Ticker text here…Ticker text here…Ticker text here’,
‘vibrate’ => 1,
‘sound’ => 1,
‘largeIcon’ => ‘large_icon’,
‘smallIcon’ => ‘small_icon’,
‘ClientID’ => ‘CT 123456’
);
So in ionic2, while receiving in the app.ts file in function
push.on(‘notification’, (data) => { };
how to receive this additional ClientID passed from the server in ionic2 typescript?
I gone through the below reference but not helpful.
It’s giving module error.
Thanks