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

Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

QML and NotificationGlobalSettings on 10.2

Regarding: http://developer.blackberry.com/native/reference/cascades/bb__platform__notificationglobalsettings.h...


What am I doing wrong here. 


I have:


LIBS += -lbbplatform in pro file.


I am using 10.2 SDK and testing on a Q10 running 10.2


<permission>access_notify_settings_control</permission> in descripitor source.


import bb.platform 1.0 at top of QML file


 attachedObjects: [
                          id: notificationsid

 in QML file



 on a button


It doesn't work.


Also tried this in my main.cpp:


qmlRegisterType<bb:Smiley Tonguelatform::NotificationGlobalSettings>("bb.platform", 1, 0, "NotificationGlobalSettings");


and on top of that page: 





What am I missing?





Posts: 19
Registered: ‎02-26-2013
My Device: Z10
My Carrier: Bell

Re: QML and NotificationGlobalSettings on 10.2

[ Edited ]

In my case I needed to add:

qmlRegisterUncreatableType<bb:Smiley Tonguelatform::NotificationMode>


("bb.platform", 1, 0, "NotificationMode", ""); in the cpp file.



New Developer
Posts: 9
Registered: ‎06-12-2013
My Device: B10
My Carrier: vodafone

Re: QML and NotificationGlobalSettings on 10.2

[ Edited ]

I get the error:


error: 'bb::platform::NotificationMode::~NotificationMode()' is private


Any idea as why?