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
Contributor
umakamat
Posts: 14
Registered: ‎01-21-2013
My Device: BB10 alpha device

How to make the device screen glow on an incoming notification?

hi

 

When the device is in a locked state, and application receives a notification, i need to make the screen glow indicating that some notification has come.

 

How do i achive this?

 

I tried using the Window API , setScreemIdleMode(ScreenIdleMode::KeepAwake);

 

But with this API, it is observed that it works fine only first time after any user activity on the device. That is only first time screen glows on incoming notification. second time only niotification sound is played but screen does not glow if the device is not unlocked after the first notification.

 

Thnaks,

Uma

 

 

Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)

Re: How to make the device screen glow on an incoming notification?

I haven't seen anything like this, handling the notifications seems like a part of the OS rather than the app. So my guess would be: not possible.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Contributor
umakamat
Posts: 14
Registered: ‎01-21-2013
My Device: BB10 alpha device

Re: How to make the device screen glow on an incoming notification?

I am sorry for the miss communication. By notification i meant to say any incoming event that is handled in my application.

 

This application is an chat application and the issue is I need to show the device screen glowing when the device is locked and an incoming chat event is received by the application.

 

 

 

 

Developer
smiley
Posts: 1,497
Registered: ‎07-14-2008
My Device: Z10

Re: How to make the device screen glow on an incoming notification?

If the device is locked your app can't be seen.  Only the lock screen is available.

Developer
HuXu77
Posts: 196
Registered: ‎02-10-2011
My Device: Playbook 16GB and Z10

Re: How to make the device screen glow on an incoming notification?

You don't want the screen to glow on a notification, you want the LED to flash.
_________________________________________________
Apps
Go Music
Flashlight Fast Free/Pro
Fitbit for BlackBerry PlayBook