02-24-2011 11:53 PM
Hi, using BPSS, how can we handle register or deregistering some user from the push service?
I will need especially to deregister user due to user authentication logic
thanks in advance..
02-25-2011 05:29 PM
Registration can only occur via the device to Push Service. Degistration can happen from device OR you can use an HTTP interface server-to-server to deregister.
02-26-2011 05:55 AM
hi massimo, thanks for the reply,
ok, deregister is enough for me, so which HTTP interface server-to-server is used to deregister?? can you enlighten me ?? thank you..
02-27-2011 10:21 PM
I grabbed it out of PushSDK.properties:
For the EVAL environment it is:
You must set the Basic Auth header as well.
02-28-2011 11:28 AM
just found the solution HowTo
using low-level API
httpResponse = client.transmitGET( pushProperties.getSubscriptionResumeUrl()+"<your-p
in>", "", // no contentType needed PUSH_APP_ID, //username your secret app-id PUSH_APP_PW, // password null); // no headers needed ... // same to suspend pushProperties.getSubscriptionSuspendUrl() ... // and to deregister pushProperties.getSubscriptionDeregistrationUrl() ... // some useful response returncodes: // rc-200 successfull // rc-10007 PIN not found // rc-10012 PIN already suspended
BTW: 'client' is HttpClientImpl Class from pushsdk.commons