04-16-2013 04:21 AM - edited 04-16-2013 06:59 AM
When we have a push - enabled application , and we need to send a push to if from our server , do we need both the token and the device id ? Cause on the sample server (low-level-sample) , it seems that it asks for a push id (what is that?!) and an address (device id) . Am i getting something wrong here , or i really need both to make it work?
Also where exactly is the token?! I dont see it anywhere.. The only thing i see from the sample server is that i need the device id and BOOM , i have a new message on the device. What is the push id? It seems that it can be anything i like. But where is the token? We dont have a token in BB development?
Thank you very much.
Solved! Go to Solution.
04-16-2013 09:13 AM
The "token" terminology is used mostly in BlackBerry 10 to refer to this address identifier.
It currently matches the PIN of the device, just like BlackBerry OS.
This is the piece of information you need to be able to push to a BlackBerry.
Push ID is the unique identifier you give the push when you send it out.
Yes, the push ID can be an identifier of your choosing - but you need to take steps to ensure its uniqueness to your application.
04-16-2013 10:54 AM
Correct. In our Push Service SDK, we use a domain name + "-" + <5 random characters> + "-" + <the current time in milliseconds> in our push ID generation.
Note that your push ID cannot exceed 40 characters.