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: 3
Registered: ‎10-04-2010
My Device: Curce
My Carrier: Verizon

researching methods to silence notifications

Are there any available API's that give us access to sms and phone ringer notifications?  Looking to silence them for a texting and driving app.

 

If not does anyone know if there are any API's not available to the gen public?  OR how we would go about applying for access.  This is good app and this is the kicker for us.

 

thanks

Developer
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780
My Carrier: Telstra AU

Re: researching methods to silence notifications

hi there,

 

Welcome to the blackberry forum and community.

 

You cant directly silence the notification but check out the NotificationsEngineListener.

 

Hope this helps. let me know if you still struggle.

-----------

Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.
New Contributor
Posts: 3
Registered: ‎10-04-2010
My Device: Curce
My Carrier: Verizon

Re: researching methods to silence notifications

I will take a look at that.  I also know that there are apps that are given c++ implementation.  Any ideas how to apply for that?

 

The problem is that the app I am developing has to silence phone and sms notifications in several different modes so trying to get this working.

 

any other input you have would be very valuable to me.

 

thanks

 

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: researching methods to silence notifications

Contrary to many newcomers to BlackBerry, welcome by the way, there is no C/C++ implementation available for BlackBerry.

 

The closest there is to it was the recently announced QNX OS. Even then no one knows what the API is like for the BlackBerry version so for all we know this isn't possible with that either.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Highlighted
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: researching methods to silence notifications

Not sure how well this will work, but try this:

1. Register your own Consequence. This will be invoked whenever an immediate event occurs.

2. Find out the source ID of the notification you'd like to silence. See step 1.

2. When the event is fired, cancel the event (NotificationManager.cancelImmediateEvent).