Skip to Content
0

Error when sending Push Message from REST Client

Nov 29, 2017 at 06:34 AM

55

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
Former Member

Jitendra Kansal, Daniel Van Leeuwen, Midhun VP,

Looking for your help here.

Thanks

0
Former Member

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Nov 30, 2017 at 12:03 PM
1

Now able to resolve by below-

URL:  <smpserver>/restnotification/application/<applicationid>/User/


Body:
{
    "notification": {
        "alert": "alertval",
        "data": "testData",
    },
    "users": [
        "Domain\\userid"
    ]
}

Thanks

Regards,

Krishna

Share
10 |10000 characters needed characters left characters exceeded