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
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Set Local Notifications

Hi there,

 

we develop a new app that requires to push local notifications. That means the app sets a time and message when application is closed and after this time the user should get a notification.

It works for iOS and Android but we haven't found a solution for the BlackBerry OS.


Could someone please give us some nice ressources where we can get started?

 

Thanks

Domi

 

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Set Local Notifications

Maybe you are using generic terms that mean some specific on BB10.  Terms like "push" and "notification" have specific meanings.  You can send a notification to the user by the Notification API:

 

https://developer.blackberry.com/air/apis/bb10/qnx/notification/package-detail.html

 

You can then just quit the application or when the user selects the nofitication, and "opens" it, then close the app.

Please use plain text.
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Re: Set Local Notifications

[ Edited ]

Hi there.


This is exactly what we need:

https://developer.blackberry.com/air/apis/bb10/qnx/notification/package-detail.html

 

There is still this little question how we can add a delay to the notifications?

 I don't know how somebody can use the qnx notifications without setting a delay?

 

Best

omi

Please use plain text.
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Re: Set Local Notifications

No solution here?

Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Set Local Notifications

Not sure what kind of delay your looking to set here. Would the timer class work? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Timer.html

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Re: Set Local Notifications

Hi dmalik,

 

on Android and iOS it is possible to set a delay after which the notification appears.

 

So you set the delay to 3600 seconds and the notification will appear in an hour.

 

The user clicks on the notification and the app opens...

Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Set Local Notifications

Ok I see what you're getting at. No there is no way to set a timed notification right now that I'm aware of. I submitted this request internally so hopefully we'll get some traction on it and get it in a future version of BlackBerry 10. 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Re: Set Local Notifications

Thanks a lot.

 

I'm wondering why there are notifications if you can't set a delay?

Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Set Local Notifications

For developers that want to take advantage of push requests from a server I'm assumung.

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Developer
grosssmutttr
Posts: 25
Registered: ‎12-17-2012
My Device: BlackBerry Z10 - Limited Edition
My Carrier: *

Re: Set Local Notifications

Okay. Thanks a lot.

 

It should be easy :smileyvery-happy:

 

Only add the delay object to this:

http://developer.blackberry.com/air/apis/bb10/qnx/notification/Notification.html

 

 

So everything would be perfect for local notifications...

 

Best and thanks again.

Please use plain text.