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

Adobe AIR Development

Reply
Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Notifications for Blackberry playbook app

Hi,

 

I want to implement  view notifications  like (email notifications) to my Blackberry playbook app using air.

 

i didnt find any example in the google on notifications for playbook.

 

can u please provide me the example code , how to implement the notifications for Blackberry playbook.

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Notifications for Blackberry playbook app

I believe the notification API only exists for the BlackBerry 10 SDK/OS. Here is a link to it - https://developer.blackberry.com/air/apis/bb10/qnx/notification/package-detail.html

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Re: Notifications for Blackberry playbook app

Hi, I found this classes in qnx for Blackberry play book 2.1 SDk/OS.

 

import qnx.events.NotificationEvent;
import qnx.notificationManager.Notification;
import qnx.notificationManager.NotificationInterface;
import qnx.notificationManager.NotificationManager;

 

and Blackberry support also said push is not there but notifications are there...

Please look at this link

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-Notifications-for-Blackberry...

 

please help me on this....i want to use nofifications on my blackberry playbook app.

 

Thank you

Ravi kumar

 

 

 

 

 

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Notifications for Blackberry playbook app

[ Edited ]

Unfortunately those events are not available in the PlayBook API. Please make sure you're looking under the PlayBook API in the documentation - https://developer.blackberry.com/air/apis/playbook/

 

platform.png

 

Also, please make sure that you have the PlayBook SDK installed. In the downloads section make sure you're downloading from the PlayBook tab. https://developer.blackberry.com/air/download/#playbook

 

download.png

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Re: Notifications for Blackberry playbook app

Hi,

Yes i am using Blackberry Playbook 2.1 SDK only , iam wondering that classes are not available in api but i can use that classes in the application .

As for as my knowledge that classes are not officially annouced in Blackberry Playbook api but that classes are available in the Blackberry Playbook SDK. Please look at this link.

 

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/Background-processing-in-playbook/td-p/...

 

 

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/Notifications-API/td-p/1216059

 

 

and please help me how to use that notification classes.

 

Thank You

Ravi kumar

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Notifications for Blackberry playbook app

Sure, here is some code but I'm not sure if it will work on PlayBook.

 

var myNote:Notification = new Notification;
myNote.title = "Noted!";
myNote.itemId = "1";
			
NotificationManager.notificationManager.notifyNotification(myNote);

 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Re: Notifications for Blackberry playbook app

[ Edited ]

Hi, The code which u given is not working.

 

For Notification class it is asking 2 arguments

 

	var myNote:Notification = new Notification(id:String,iconurl:String);

 

There are no properties "title" and "itemID" for notification class. and there is no "notifyNotification" method in the NotificationManager class, instead of "notifyNotification" method "notify" method is there.

 

Here iam showing the path of notification classes in the qnxdevice.swc file .

 

Notification class path

 

u can find the classes by installing Blackberry tablet sdk 2.1.

 

Please provide me the information , how implement the notifications on my app  using that qnxdevice.swc file notification classes.

 

Thank you

 

 

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Notifications for Blackberry playbook app

Ravie, it is very impolite to send random people personal messages asking for help. Please stop. You already have an ongoing thread.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Re: Notifications for Blackberry playbook app

[ Edited ]

ok...iam sorry for that...actually i shared the thread in the message.....iam waiting for notifications from 1 week....please help me on this....

Contributor
Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Re: Notifications for Blackberry playbook app

Hi, iam waiting for reply.....