‎2017 Nov 29 6:34 AM
Dear Experts, I have successfully implemented the SMP Kapsel Push Notification & I can send Push notification to the particulat user id using the URL-
<smpserver>/restnotification/application/<application id>/<user id>
Above is not working when user id is having '\' character. Basically, our SMP is authenticating user against AD server & user is passing user ID as 'Domain\user id' & users are registered on SMP with 'Domain\userid'. But whenever I am trying to send push notification, its giving error-
I tried below format
<smpserver>/restnotification/application/<application id>/Domain\userid (returns 404)
also tried encoding format
<smpserver>/restnotification/application/<application id>/Domain%5Cuserid (returns 400)
Please help how to send push notification to the user in this case.
Thanks for your help!
Regards,
Krishna
‎2017 Nov 30 12:03 PM
Now able to resolve by below-
URL: <smpserver>/restnotification/application/<applicationid>/User/
Body:
{
"notification": {
"alert": "alertval",
"data": "testData",
},
"users": [
"Domain\\userid"
]
}
Thanks
Regards,
Krishna
‎2017 Nov 29 10:29 AM
jitendrakumar.kansal, daniel.vanleeuwen, midhun.vp,
Looking for your help here.
Thanks
‎2017 Nov 30 8:20 AM
Dear Experts,
Please let me know, if some one has any idea to send push notification in this case.
Any help would be much appreciated.
Thanks
Krishna
‎2017 Nov 30 12:03 PM
Now able to resolve by below-
URL: <smpserver>/restnotification/application/<applicationid>/User/
Body:
{
"notification": {
"alert": "alertval",
"data": "testData",
},
"users": [
"Domain\\userid"
]
}
Thanks
Regards,
Krishna