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: 64
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany
Accepted Solution

Opening the notification settings of an app

I'm trying to open the notification settings menu of our app with an invocation. I can open the general notification settings using "settings://notification" for the uri, but invoking the app-specific screen fails.

 

    InvokeRequest request;
    request.setAction("bb.action.OPEN");
    request.setMimeType("settings/view");
    request.setTarget("sys.settings.card");
    PackageInfo packageInfo
    request.setUri("settings://notification/application?id=" + packageInfo.name());
    reply = invokeManager.invoke(request);
    connect(reply, SIGNAL(finished()), this, SLOT(onFinished()));

 I've followed these instructions: https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/settings.h...

 

I tried hardcoding our app id into the invocation uri instead of using PackageInfo, but that didn't work either. Has anyone got this working?

----

My Twitter: @hendrik_dev
Highlighted
BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Opening the notification settings of an app

What version of BlackBerry 10 OS are you using?  What behaviour are you seeing?  Does the Settings app fail to load or does it open to the screen that lists notifications for all applications?

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 Contributor
Posts: 2
Registered: ‎11-21-2013
My Device: Z10
My Carrier: Truphone

Re: Opening the notification settings of an app

I'm encountering the same issue.

 

OS Version: 10.2.1.3175

 

Behaviour:

"settings://notification/application?id=" + packageInfo.name())

--> Main Settings opens, i.e. it fails to load the applications notifications settings screen

"settings://notification"

--> Notifications opens, i.e. Settings->Notifications

 

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

Re: Opening the notification settings of an app

I've been able to reproduce this in BlackBerry OS 10.2.1 as well.  This has already been fixed in BlackBerry OS 10.3.

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
Developer
Posts: 64
Registered: ‎09-10-2009
My Device: Z10, Bold 9700
My Carrier: O2 Germany

Re: Opening the notification settings of an app

I've got another question regarding the invocation of the notification settings:

 

There are notification settings for each profile: Normal, Silent, Bedside, Phone Calls Only, etc.

 

The invocation above opens the Normal profile. Is it possible to invoke the other profiles as well?

----

My Twitter: @hendrik_dev