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
hendrik
Posts: 63
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
Please use plain text.
Administrator
MSohm
Posts: 14,309
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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
Please use plain text.
New Contributor
andrewkinney
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

 

Please use plain text.
Administrator
MSohm
Posts: 14,309
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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
Please use plain text.