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

Native Development

Reply
Developer
Posts: 1,575
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Blocked SMS still shows in the HUB. Why?

In my app i'm blocking SMS messages and when the message is blocked the sms header info eg: sender name and number still shows up in the HUB but the message body is blank.

 

anyone have this problem?

Retired
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: Blocked SMS still shows in the HUB. Why?

Hi

 

could you share some code showing how you're going about "blocking" the SMS message please?

 

Thanks

 

Martin

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Developer
Posts: 1,575
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Blocked SMS still shows in the HUB. Why?


mwoolley wrote:

Hi

 

could you share some code showing how you're going about "blocking" the SMS message please?

 

Thanks

 

Martin


I'm just using the following code

 

                m_messageService.remove(accountId, messageId);

thanks

Retired
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: Blocked SMS still shows in the HUB. Why?

Thanks. Sounds most odd! Let me look into this for you.

 

What version of the BlackBerry 10 OS are you running on and on what model of device by the way?

 

Regards

 

Martin

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Developer
Posts: 1,575
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Blocked SMS still shows in the HUB. Why?


mwoolley wrote:

Thanks. Sounds most odd! Let me look into this for you.

 

What version of the BlackBerry 10 OS are you running on and on what model of device by the way?

 

Regards

 

Martin


It happens on all versions from OS10.0 to the latest 10.2.1 leak.

 

just setup a message listener and then check if the message is sms and then delete it.  Then goto the Text message app or the Hub and you will see the message there.

Retired
Posts: 571
Registered: ‎06-25-2010
My Device: Z10
My Carrier: Vodafone

Re: Blocked SMS still shows in the HUB. Why?

Thanks.

 

Are you connecting to the messageRemoved signal?

 

https://developer.blackberry.com/native/reference/cascades/bb__pim__message__messageservice.html?f=m...

 

Wondering whether you're receiving the signal.

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Highlighted
Developer
Posts: 1,575
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Blocked SMS still shows in the HUB. Why?


mwoolley wrote:

Thanks.

 

Are you connecting to the messageRemoved signal?

 

https://developer.blackberry.com/native/reference/cascades/bb__pim__message__messageservice.html?f=m...

 

Wondering whether you're receiving the signal.


Yes. But that is only signalled when the message is deleted and shouldn't have anything to do with the message after.

Developer
Posts: 33
Registered: ‎12-05-2013
My Device: Z10
My Carrier: 123456789

Re: Blocked SMS still shows in the HUB. Why?

Try to delete the conversation as well:

mService.remove(accountId, conversationId);

Hope it works as you expected. It works properly in my Watcher app.