Low level API - how to send a message?

Hello!

I'm new to blackberry and especially the push api. I'm having a few problems on pushing some messages with the api for low level that is provided by the sdk for blackberry 1.1.0 push.

First of all, I can't seem to find an example that uses the low level api (is there only an example for the high level api?). Do you know where to find an example for that? I already set up the customer and saved successfully to the blackberry push service.

I found a code that was based on the previous version 1.0 of the sdk push and I slightly modified. Unfortunately, it does not work. Here is the code:

IdGenerator idGenerator = new IdGeneratorImpl();

List = new ArrayList ()addresses;

Addresses.Add (DEVICE_PIN);
PushMessageControl pushMessageControl = new PushMessageControl (true, idGenerator, PUSH_APP_ID_AND_USERNAME, addresses);

Content papContent = new TextContent ("Information I want push here");
PapService papService = PapBeanLocator.getPapService ();

PushResponse response = papService.push (PUSH_APP_ID_AND_USERNAME, PASSWORD, PUSH_APP_ID_AND_USERNAME, pushMessageControl, papContent);            System.out.println (Response.ToString ());

Thanks for helping out! Really appreciate it

BR

Domini

I found the solution to my problem. I directly inserted my ppg base url in the value of the property 'public.ppg.address in the PushSDK.properties file.

Tags: BlackBerry Developers

Similar Questions

  • How to send a message between two custom components

    I have a datagrid in a custom cuomponent that is.

    < mx:Canvas id = "customerGrid".
    Width = '100% '.
    Height = "350" >
    < customer: CustomerGrid / >
    < / mx:Canvas >

    < customer: CustomerDetail / >

    The < customer: CustomerDetail / > has a TextInput. How to send a message to < customer: CustomerGrid / > to < customer: CustomerDetail / > when you click the datagrid control. When a user clicks the selectedItem I want this detail to display in the TextInput, which is in another component.

    I'm looking in Restaurant Finder sample. He uses exactly as I wanted to do. However, it uses a kind of AccessibleText. Is there somewhat easier to implement.

    Thank you

    One way to do this is to use the property data, most of the components inherit and use links between the custom grid and the detail view.


    Width = '100% '.
    Height = "350" >

    Now, in the light of the foregoing, I assumed that CustomerGrid is actually extending DataGrid, if this isn't the case, you will need to add additional logic to CustomerGrid. You will need to define a public property to the value of the selected item in the DataGrid inside the CustomerGrid and make it Bindable (see docs: metadata that can be related).

    Inside the CustomerDetail, bind the TextInput property data, by setting the property in the data object to which you want to display.

    Say the selectedItem (in the DataGrid) has a customerName field, you would do something like that (inside CustomerDetail).

  • SocialCast API: How to find private messages with subjects in their

    Hello!

    I use the api / conversations to send a private message with a new hashtag (for example #myNewTag) in it.

    But I can't manage to find this message later by using the following method: api/messages/search with q = #myNewTag,.

    I can't find the new subject itself with api/themes/research or api / themes...

    This new section is not visible in the view is exploration of the web application.

    How to create a private message with a new tag in there? (is that enough to insert #... in his body?)

    Thank you in advance for your help!

    guimcha

    Hi Guimcha - Hashtags, or topics are not supported in private Messages, because they are conversations private and not visible to the rest of the community. Topics can only be used in regular messages (groups, projects, challenges). You can tell when a topic/hashtag is validated successfully because it will turn into a hyperlink and create it's own page of topics.

    I hope this helps!

    -Samantha

  • DROID: Stupid Question perhaps? How to send text messages?

    This may sound stupid, but for the life of me, I can't understand how to send a test message... any ideas?

    go to the text message you want to transfer.  tap and hold.  a menu will appear and select forward.

    If the message in a thread, press the text message you want to forward.  It should only send this message in the thread.

  • How to send a message to another computer by using prompt on a network in Windows 7?

    Original title: How do I send the message

    How to send message to pc network using the prompt for windows 7

    Hello

    If you want to put some small insatlling time program on computers.

    This free utility. makes it easier for any qualified users to send messages via LAN.

    http://www.Fomine.com/net-send-GUI.html

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Low level API Audio

    I've been hunting for the native support for the very low level of audio control for applications PlayBook, but so far without success. I am eager to join the raw PCM data stream so that I can process data in real time, perform the FFT, display the spectrum, etc.. Is it a low layer API that allows me to access the audio stream for the treatment?

    I think that's what you're looking for:

    https://developer.BlackBerry.com/native/reference/com.QNX.doc.neutrino.audio/topic/pcm_receivingdata...

    You should be able to enter data using these functions and work with it accordingly. FFT and other should be fairly simple.

    If that answered your question, like this post and/or mark it resolved.

  • How to send a message to users

    I recently received a message by the developers of one of the apps that I use. He said something like "heres informing you of a new great application" etc.

    I was curious as to how I got this message, and how to do about sending such a message to users who have downloaded my theme? Basically, how to communicate with my users?

    There is no direct way to communicate to the users since you don't really know who they are. You could:
    (1) create a blog
    (2) the XML on a server configuration the application checks on a regular basis. The XML can contain messages with dates.
    (3) push installation notification

  • Windows Mail - how to send a message to multiple addresses without showing the e-mail addresses

    I want to send a message in Windows Mail to multiple e-mail addresses at the same time, but I don't want everyone to see who all send it. Outlook used to have an option "bcc"... Cc of the blind.

    Open a new message window. View | All the headers. Or simply click on the button to.

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Peer-to-peer NFC - how to send multiple messages?

    I am able to send one message from a device and read on the other.

    I wanted to do a handshake 3 channels using NFC, my goal was to have:
    -App 1 writes a tag that begins app 2 served if it does not work
    -App 2 sends a piece of application data 1
    -On receiving app 1 sends another piece of data in response to app 2

    To receive the data, I use a
    invoke targe
    -With a:
    - Then I connect to InvokeManager::invoked, in which I extracted the payload

    To send the data, I use
    -nfc_create_ndef_record (NDEF_TNF_EXTERNAL
    -nfc_push_ndef_message
    -J' use the nfc_target_t that I get in the NFC_SNEP_CONNECTION_EVENT event.

    I'm able to push the message immediately NFC_SNEP_CONNECTION_EVENT, or later in an asynchronous event.
    But I can't push the message twice, otherwise it is received only once

    I have not found a way to use the native functions of nfc_ * to read the data of the NFC. I call nfc_register_tag_readerwriter (TAG_TYPE_NDEF), but AbstractBpsEventHandler::event is never called

    Hi Martin

    Unfortunately you can not send multiple push messages in the context of a single NFC "tap." You must have the users of separate devices and tap again before you can send your second push message.

    The way alternative and probably better to implement your handshake is to use LLCP.

    I work on a sample of code for this right now and will be published as soon as possible.

    Concerning

    Martin

  • How to send a message when you browse the page creation

    Hello

    I have an obligation to send a message saying "this page changes not saved. If you continue, the changes will be discarded. You want to continue,"when browsing a page creation as clikcing on the link on the homepage or on the link on the page.

    This feature is available in the pages of seeded Oracle OAF.

    Kind regards
    AFA

    Hello

    Create a formvalue and attach it to the same ViewAttribute as lov entry is.

    then in mapping lov create a mapping of lov to form value with the element of area of LOV as table lov item id and return the element in the formvalue form.

    By that if the user tries to present with invalid values... it will display an error message: "select a valid value."

    Thank you
    Gerard

  • Why the wheel of favorites to friends has been removed in ios3 in update? How to send a message unless someone has already sent me a message?

    So, I was excited by the new OS3 for Apple Watch update and I have now downloaded and installed. Only to find one of the features I've used a lot seems to have disappeared forever. The wheel of 12 favorite contacts friends went completel, the problem is that I used this a lot to launch messages quickly when I'm stuck in a meeting.

    Workaround for this problem seems to be to open messages and find a message from the person you want to contact, but what happens if they don't have not sent you a message? How would be feasible send their text or digital touch? The only application of contacts part of the phone app and it only allows me to call.

    Maybe that is not something that many people used but I did and I'm upset his party. There is no need to be attached to a button, but you could keep it as an application that I could add to my dock. Now I feel I lost the update functionality to the last update.

    Hello

    If you want Apple to consider restoring friends to watch OS, you can submit the form here, by choosing "feature request" as a return type:

    https://www.Apple.com/feedback/watch.html

  • How to send a message to a list of address book as "BCC", not "at"?

    I have different lists for different people on my personal address book of TB. If I press "Write" (for a given group), TB by default creates a message with all recipients in ' to the ' mode - i.e. all recipients will see the e-mail addresses of each and other. How can I change the default message to "bcc" parameter without having to manually change each unique entry in the email?

    Do not start a message in the address book. It is not the best place to do it.
    This is what the window of writing. Open the window of writing and turn on the contact bar by pressing F9.
    Select the contact, contacts or list you want to send to and then use one to add ALSO: buttons at the bottom of the sidebar.
    Hold down the CTRL key while clicking to select multiple items, the items.

  • How to send the message to the PC on Windows 7 and Windows XP

    Hi Anoop,

    seeing that you're a technical support engineer, maybe you can help me.
    In my workplace, there are 7 PCs connected in lan.
    5 of them have xp and rest 2 have professional win7 on them.
    We need all employees stay in touch all the time, so I decided to try to MSG. EXE in my win7 machine. I edited the registry to 'Allow remote RPC' entry on my machine and other machine win7. then after I tried the following command:
    "msg [account name] / Server: [name of the pc]"message.
    He waited a few moments and error 5 message.
    and yet one thing, all the machines have exactly identical account names & passwords on them.
    Please tell me how to communicate on both xp & win7.
    Kind regards
    Mr. Pratap Singh

    The messaging service has been removed with the release of Windows Vista and is longer supported in recent versions of Windows.

    I suggest that you try a third-party tool called network Chat

    http://download.CNET.com/network-chat/3000-2085_4-10326659.html

  • Transmission API: how to send the video to another application running.

    Hello

    I'm not a programmer so excuse my ignorance.

    Just try to scope a project.

    We would like to get live video output of the first to use in another application.

    The idea is to use a stream of first as a texture for a map navigable 3d model.

    It's to do the job of previs 3d really difficult.

    We have an existing version of the app to previs 3d that does the same thing with quicktime movies imported.

    But our coder has not used the SDK before first.

    You wonder if we can use Transmit somehow... to treat our app as an external monitor.

    Guidance on how to move this topic... or better still... y at - there anyone out there that could be in place to help us on this project (small budget but paid)?

    Thank you very much

    Marcus Lyall

    Hi Marcus,

    Yes, the sounds of mercury pass API as way forward for you.  I would recommend from the sample project "transmitter".  Build in the folder plugins Organization (as described in the documentation, SDK Guide.pdf, Chapter 1, 'How to build the SDK projects').  Your developer can set breakpoints in the code of example of transmission and launch a debugging session with the Organization, to observe how transmit plug-ins are called, and what information they passed.  Looks like you will not be working with audio, so you can just disable that in the sample.  Chapter 9 of the SDK Guide has much more information on the concepts in the API issue.

    Kind regards

    Zac

  • How to send a JMS Message to a process of BPM

    Hi all

    I have small question regarding the sending of JMS Message of a bpm process. Is it possible to send a bpm process JMS messages to another bpm process.

    I have a scenario in which I need to send a JMS message to a queue, where another process is listening on this queue, and upon receipt of the message in the queue that is created for the process instance.

    I know how to listen to the JMS message on the queue, but I did not how to send a message to a process JMS.

    Also can I create processes by sending Notification to the process instead of a JMS message. But the creative process isn't a subprocess i.e. a declaration can be addressed through different processes.


    Any information or the example in this respect would be useful.

    Thanks in advance

    Published by: user9945154 on April 22, 2009 19:46

    Hello
    Daniel already told you how to send a JMS message.

    To send messages between different processes, you can use the Notification component:
    http://download.Oracle.com/docs/CD/E13154_01/BPM/docs65/standard_components/Fuego/lib/notification/Notification_component.html

    To create an instance of another process, you can use the ProcessInstance:
    http://download.Oracle.com/docs/CD/E13154_01/BPM/docs65/standard_components/Fuego/lib/ProcessInstance/ProcessInstance_component.html

    If you want to create an instance of another process, I recommend you ProcessInstance component because the creation is done in the same transaction. That has advantages:
    1 - is much faster!
    2. it is performed in the same transaction. Thus, you will be sure that the instance has been created.
    3. you don't have to wait until the arrival of the notification. (Sometimes, this reduces the interprocess synchronization)

    Hope this helps,
    Ariel

Maybe you are looking for

  • How to allow the clean-up actions to be taken by a reentrant clone before he is killed, seen through the web server, through a narrow browser?

    Here's a question I'll get lucky with.  I have a VI, set to be reentrant, broadcast via the web server.  The main instance of the VI is never worked with: it's a clone whenever someone accesses the correct URL, and the user interacts with the newly c

  • Mac path separator

    Hello I'm transferring a written in windows for mac labview vi. In windows, it uses to the DLL, so I converted it to a Mac framework. Everything works fine. But I have a problem with the path separator: on Mac, LabView uses a colon as separator, whic

  • Use the date filter to change in fsisys.ini - Documaker Server 11.1

    HelloI'm trying to create a filter for my lot at fsisys.ini (Documaker Server 11.1). I would use a date, however, it does not work. Is this possible?Here's what I entered:Rebatch = BatchName (sdbib) If ((TranType = "BILL" et COMPANY_NAME = "COMPAGNIE

  • How to remove duplicates in my Lightroom Catalog?

    I have merged an old Lightroom Catalog in my Lightroom hand catalogue and accidentally created duplicate images, thousands of them (sometimnes, geometry), I suppose I must have completed the process before, foregotten and not deleted catalogs I merge

  • Virus after installation of CC

    I recently (within the last 72 hours or more) installed creative cloud on two machines and the trojan.swifi of virus was detected on two machines after installation.  As far as I know, this is the only change made to the two computers.  I would like