Get the device ID in the BpsSubscriptionMessageBuilder.createByteSubscriptionMessage method

Hi all,

First of all, sorry if this thread is not appropriate because there is a similar. If there is, I have not found.

I want to build an application compatible with its server push, but I don't want to use servlets and the jar provided by push SDK service.

I think that the only thing I have to do in the server part is to get the PAP message with the required parameter 'address' (the device) using low level libraries.

However, I have a problem of developing the application in the device. Using this code as a reference:
http://docs.BlackBerry.com/en/developers/deliverables/21128/Subscribe_to_a_BPS_content_provider_1226...

I see that the parameter 'address' is obtained in the createByteSubscriptionMessage method, but I don't see its implementation to get the parameter 'address' (got to the servlet subscription) because it is a native method.

Thus,.

1 - see the API:

http://www.BlackBerry.com/developers/docs/7.0.0api/NET/rim/device/API/IO/messaging/BpsSubscriptionMe...

What is the parameter 'address' obtained in the server (servlet subscription) part? The device ID? How can I get it back?

2 - I could build the app-client just stay at step 6 and send the HTTP message on my way?

Can someone help me?

Thank you all.
Kind regards.

If I understand what you're trying to ask is how to get the address of the device your application to initiator to push aside server.

If so, you can see an example here:

https://developer.BlackBerry.com/Java/documentation/registering_to_receive_push_messages.html

Basically, you can see the code example in the sample application compatible push built a HTTP message to send to its application server-side. Although this example sends the HTTP message in the format SDK expects that you don't need to use the SDK or the same format, but you can follow the example to send a simple HTTP message on your own server to send the information about your application requires server-side. For example, the link above shows that to get the address of the device, you can do this:

Integer.toHexString( DeviceInfo.getDeviceId() )

In side your application server, you must save the address of the device, then when you build the push request message that you use as the address of the device if you are using the low level SDK APIs (or enter this value in the field address PAP XML if not not using the SDK).

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Video option disappeared after 10 IOS?

    Hi all I've recently updated to IOS 10 on my iPhone 6 and I noticed that my camera function no longer has a "Vidéo" option That's happened?

  • How to copy music from iTunes on my Mac to a USB

    I have an iMac OS X El Capitan Version 10.11.4 and want to copy music from iTunes on a USB key. I tried the usual method of highlighting of the songs and dropping to the USB port. I also had some online chat with Apple which has been committed but st

  • Mac e-mail with comcast issues

    I have a mini mac 2012.  .. and the mavericks. For two months, I had to most any e-mail. Also, I have Comcast mail service and use Apple mail. Comcast has changed their outgoing POP IMAP mail server. This caused the problem. I called Comcast 36 times

  • What is the best use of the flash storage based on PCIe?

    On the Mac Pro, PCIe-based flash storage should be for applications? or? Thank you Diane

  • gray screen with the pointer to the login screen

    Sometimes when I boot my iMac 11.2 I have a gray screen when I only have my mouse pointer. If I click where my user picture should be and then type my password I can log in, if I want my power button down for one second until the display sleeps and p