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:
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
-
Get the error: class/method: tcReconciliationOperationsBean/ignoreEventAttr
Hello
I get this error in my log files when I run our custom role add scheduled task:
Class/method: tcReconciliationOperationsBean/ignoreEventAttributeData a few problems: data not found.
But I can't understand where is the problem with the error. If the user account is not present in the IDM or data of user role in do not present in the child view data. Please help if someone faced this error before.
Thank you
Kalpana.This error means that you are trying to present an event of reconciliation which refers to a child table, but does contain no data for the child table.
Is - what your custom scheduled task has a provision to make the test for a single user, you can check this single user, it will help you to debug.
Thank you
Patricia -
Why do I get the message that I am running out of storage on my device when my storage icloud is practically empty?
It could be that your backup may be the cause.
See if that helps - manage your iCloud - Apple Support storage space
-
I am trying to sync my iphone to my computer via i-tunes soft ware. It does give me an option for the phone device. How can I get the phone icon in the menu bar?
Mac or Windows?
-
As the title suggests, can I get the serial number of the device iOS device, IMEI/MEID, CDN and ICCID by code, someone says I can't do that, I'm very confused. Can someone show me the Apple document on this subject?
For reasons of confidentiality, Apple doesn't want you to access specific information of any peripheral such as MAC IMEI, UDID, address, serial number, etc and has been remove support for this kind of information the SDK for awhile now. Your application will be rejected if you try to use private methods, that's probably what they were talking about.
-
Pavilion g6: I get the message "PCI device has not a driver" I don't know what to do.
EHEN I run the trouble Shooter, I get the message "PCI device has not a driver" I don't know what to do. Can I get a link to load down even. This problem has prompted after a system restore.
Hello
Most as it is the PCIe card reader drivers. Please try:
http://h20564.www2.HP.com/hpsc/SWD/public/detail?swItemId=ob_133237_1 & swEnvOid = 4158
Otherwise after return what its hardware id.
Kind regards.
-
Satellite Pro P300 - hot to get the WLAN driver in my device manager?
I have a Toshiba Satellite Pro P300 with xp pro. My wlan driver atheros AR9281 does not work. I uninstalled it as suggested by Toshiba
and downloaded a new. How can I get the download open and in Device Manager?Prior to do any create new folder on the desktop.
Download driver driver and start TC00147200C.exe Toshiba will start extraction of archive
Click on Options
Click Browse, and then choose new folder on the desktop
Click next
Click Start
When finished open the new folder and go to the folder XPDrv
Start the installation with setup.exe and the installation should startCan you please confirm if it works?
-
Sony walkman b172 unable to get the certificate of the device to transfer any music! Help!
I have recenetly had my new sony walkman b172, I just installed and registered the device in my name, when I go to transfer all synchronization musicor music in WMP, it says Error failed to get the certificate for devices, please make sure that its not busy and try again, I tried different USB ports and everything but without success, anyone has any help at all please!
Exactly the same problem with NWZ-E475. Some albums synchronize very well but others say... .not possible to get the certificate of the device...
Why since on my old 4 GB Walkman the exact same files have been transferred OK?
-
How do I get the Lock Down device utility for Tecra A8
I want to get the device Lock Down software utility and manual training. I understand that the Device Lock Down is available on request from Toshiba. Where exactly can
I get this utility since I can't find any information anywhere. I understand that it is compatible with my laptop Tecra A8. Anyone who has used this utility successfully.
Any help would be greatly appreciated.
Hello
As much as I know Toshiba offers programs of own software always with own books. You can find all the software pre-installed on Toshiba picture that should be bundled with the laptop Toshiba or Toshiba driver download page.
To my knowledge, don t Toshiba sells programs without books
-
In Safari, I get the error code BSOD 0 X 80060402, error code Windows defender in the available boot device. He told me to contact Microsoft certified technicians. I do not use Microsoft or windows.
You have utilities installed on the computer antivirus, cleanup, or other third party maintenance?
-
I can't get the picture size to fill the screen. The TV is set to 16: 9 and all other devices to fill the screen.
Thanks for any suggestions that might help solve this frustrating problem.
Welcome to the Apple community.
The devices on which you are talking about, are you using AirPlay.
-
Check out Get the address of the Bluetooth device list
I have two series Bluetooth devices both send numbers to pc.what I want to know is how to get the address of the list of devices Bluetooth discover bluetooth device then use to connect to the first device read data log and connect a second device.
Hello Aymanch,
The Bluetooth Discover VI will be released a cluster with devices within the range of your network, where a feature will be the address and the second part will be the name of the device. You can then use the address as an input for the VI of open connection and then pass this reference reading VI and close connection VI.
If you want to see an example of how to get the address of the cluster and how to use these screws, please open the example Finder and search for Simple Bluetooth project. The Server.vi shows how to unbundle the cluster and the Client.vi shows something similar to what you want to accomplish. Because you are going to use two devices, you can even use a loop to repeat the operation on the two addresses.
-
How can you add a device in MAX after getting the error 200220
Hello
I get the following error message when I start my datalogging software
When I opened MAX, I noticed that the device NOR I use (USB-TC01) is not listed.
Someone out there would be able to let me know how to add the TC01 device? I know that I need to go to the icon "create new" devices and Interfaces, but do not know how to proceed after that. I get the next screen but not sure what to select.
I use the 9.0.2 version of NOR-DAQmx driver on Windows XP operating system.
Thanks for your time,
Kevin
You may need to update your DAQmx driver.
Look at this page. http://sine.NI.com/PSP/app/doc/p/ID/PSP-916/lang/en
All versions of DAQmx listed are more recent than the 9.0.2 you use.
Also, take a look at this message thread. http://forums.NI.com/T5/instrument-control-GPIB-Serial/NI-USB-TC01-not-found/m-p/1454196?requireLogi... which seems to confirm.
-
I can't get the automatic updates on my samsung jack sgh-i616.
"Connection to the update server is not available. "Check your data connection settings and make sure that the device date and time are correct.
RESULT CODE: 80072ee7
-It is a windows mobile 6.1
Thank you very much! = DAs a guide.
This error code translates ERROR_INTERNET_CANNOT_CONNECT.
You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates
http://support.Microsoft.com/kb/836941Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.
-
I keep getting the message "there are no lightscribe devices in this system.
I keep getting the message "there are no lightscribe devices in this system.
I tried to open the recommended site for updates, but I get an error messasage. Can you help me?
Follow article
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