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
New Contributor
Posts: 4
Registered: ‎06-20-2011
My Device: 9800
My Carrier: IDEA

Not able to process the incoming SMS before it reaches the Inbox

 

We are trying to build a Blackberry application to filter incoming SMS(s). We have been successful in intercepting the message using Datagram / MessageConnection. However, by the time we receive the message in our listening thread and process it, the message has already reached the SMS Inbox. This is defeating the purpose of intercepting. Also, Blackberry does not allow reading/writing/deleting SMS from SMS Inbox. Therefore, once the SMS reaches the Inbox, there is nothing that can be done to remove it.

The Firewall filter works pretty well for blocking SMS. However, there is no api to access Firewall settings.

I think the only option would be to set the listener in such a way that it receives the SMS before the native Inbox. But we are not able to find any documentation around this. Any pointers for resolving this issue will be greatly appreciated.

Thanks

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: Not able to process the incoming SMS before it reaches the Inbox

Hi,

 

 First confim  me whether you want to receive all SMS to your application or only some specifications..

 

If we use any port number for sending & receiving sms then those sms won't reach Native.If we are not mentioning any port default it takes '0' so it will receive in native SMS Inbox also

New Contributor
Posts: 4
Registered: ‎06-20-2011
My Device: 9800
My Carrier: IDEA

Re: Not able to process the incoming SMS before it reaches the Inbox

We would like to intercept all incoming SMS(s) and then filter them based on certain criteria.
Developer
Posts: 97
Registered: ‎10-06-2009
My Device: Not Specified

Re: Not able to process the incoming SMS before it reaches the Inbox

Yo can only intercept outgoing sms using Send Listener(From JDE 4.6.0).But you can't intercept Incoming SMS

Highlighted
New Contributor
Posts: 4
Registered: ‎06-20-2011
My Device: 9800
My Carrier: IDEA

Re: Not able to process the incoming SMS before it reaches the Inbox

Well that's not true. We are able to intercept the incoming SMS. Our only problem is that before even we start processing the SMS, it reaches the SMS Inbox. We would like to conditionally block the incoming SMS from reaching the Inbox.