Skip to Content
avatar image
Former Member

Error when sending Push Message from REST Client

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 30, 2017 at 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

    Add comment
    10|10000 characters needed characters exceeded