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: 188
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Notifications Preview in Homescreen

[ Edited ]

I want to show the level of the battery, temperature and other options, but does not show me anything use the following.


   myNotification = new Notification();
   myNotification->setTitle("DeviceSuite App Notifications");
   myNotification->setBody(hwInfo.modelName() + batteryInfo.level() + batteryInfo.temperature());

 The only thing I function and is shown in the preview is: 


 But Battery not  Smiley Sad


MOD EDIT: Subject changed to reflect a new topic

Follow me in Twitter:


BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:

Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Notifications Preview in Homescreen

i would suggest that you construct the body as a string beforehand and add logging to output it to the console.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter