Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 3
Registered: ‎09-15-2008
My Device: Not Specified
Accepted Solution

Problem with SendListener - can't use with PIN messages?

Hi all,

 

What I'm trying to do is attach a SendListener to the PIN messaging session. So far, I've managed to attach SendListeners to al of the e-mail accounts set up on my BlackBerry by using the advice given here. Since that solution filters the ServiceConfigurations down to only those that have an e-mail address (which would drop the PIN messaging ServiceConfigurations) I tried this:

 

 

ServiceBook sb = ServiceBook.getSB();

ServiceRecord[] records = sb.getRecords();

for (int i = 0; i < records.length; i++) {

ServiceConfiguration sc = new ServiceConfiguration(records[i]);

Session.getInstance(sc).getStore().addSendListener(this);

}

 

However, PIN messages are still not calling sendMessage()!

 

Could someone please enlighten me on whether it's possible to do what I want to do, and, if so, how to do it?

 

 

Extra information:

 

I'm working with a BlackBerry 8800 on UK Vodaphone, running OS v4.2.1.101 (Platform 2.3.0.80). This is, to the best of my knowledge, the latest OS version that Vodaphone have approved. Due to the OS version, I'm using the 4.2.1 API.

 

Thank you in advance,

 

cosmicflame.

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with SendListener - can't use with PIN messages?

PIN messages are not captured by the SendListener.  This is not currently supported.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 3
Registered: ‎09-15-2008
My Device: Not Specified

Re: Problem with SendListener - can't use with PIN messages?

Well, that's annoying...  Oh well, if they're not supported, then they're not supported.

 

Two follow up questions, if you don't mind:

 

- Do you know if this functionality is likely to be added in future versions?

 

- If not with SendListener, is there any other way of accessing PIN messages before they're sent?

 

Thanks very much for your quick response, even if it wasn't the answer I was looking for... Smiley Wink

 

cosmicflame. 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Problem with SendListener - can't use with PIN messages?

I can't comment on possible new features, but I can say that there is no way to capture PIN messages before they are sent.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 3
Registered: ‎09-15-2008
My Device: Not Specified

Re: Problem with SendListener - can't use with PIN messages?

Well, that's rather disappointing...

Oh well, thanks very much for quickly putting me out of my misery Smiley Wink 

New Developer
Posts: 1
Registered: ‎01-13-2010
My Device: 8300
My Carrier: AT&T

Re: Problem with SendListener - can't use with PIN messages?

Mark,

 

Is there a way to be notified of PIN to PIN messages after the message is sent?

 

We are looking to archive PIN to PIN and SMS communications without using BES server logging.

 

The design we would like to implement is to simply call an HTTP service with the message body upon send or receive of PIN to PIN or SMS