Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when sending Push Message from REST Client

krish4ugzp
Explorer
0 Likes
1,058

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

1 ACCEPTED SOLUTION
Read only

krish4ugzp
Explorer
934

Now able to resolve by below-

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


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

Thanks

Regards,

Krishna

3 REPLIES 3
Read only

krish4ugzp
Explorer
0 Likes
934

jitendrakumar.kansal, daniel.vanleeuwen, midhun.vp,

Looking for your help here.

Thanks

Read only

krish4ugzp
Explorer
0 Likes
934

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

Read only

krish4ugzp
Explorer
935

Now able to resolve by below-

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


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

Thanks

Regards,

Krishna