How to trigger LED notification light for local notifications?

I’m scheduling a local notification. When it gets triggered the sound plays and the alert shows up like it should.

But it does not trigger the notification light on my phone. Is there an Android permission for this? Does Corona have the ability to do this?

I’m confused by a couple of things I saw researching this.

  1. Most LED apps for notifications have to run on rooted devices.

  2. There is something called a notification listener that can read notifications and then blink the LED.  Its possible that these listeners need root privileges.

  3. There seems to be some native code needed to do this.  It’s not a permission that can be turned on.

From this either its something engineering would have to enable in the notification system, but we would need some API’s defined for how it’s going to work.  While the amount of code doesn’t look difficult, the fact that we would have to provide ways to set the color, and on and off durations, makes it a little more challenging.  There is also no iOS way to do this and I don’t know if Win8 phones support this or not.

If the notification listener thing is how this is done, it would be done in native space an not in Corona SDK.

I would suggest going to http://feedback.coronalabs.com and creating a feature request for this and get it voted up.

Rob

@Rob, thank you! That’s what I needed to know. It looks like Corona does not currently support this but that’s ok. It would be a nice feature to have but it’s not critical for me.

Thank you for taking the time research this!

Vince

I’m confused by a couple of things I saw researching this.

  1. Most LED apps for notifications have to run on rooted devices.

  2. There is something called a notification listener that can read notifications and then blink the LED.  Its possible that these listeners need root privileges.

  3. There seems to be some native code needed to do this.  It’s not a permission that can be turned on.

From this either its something engineering would have to enable in the notification system, but we would need some API’s defined for how it’s going to work.  While the amount of code doesn’t look difficult, the fact that we would have to provide ways to set the color, and on and off durations, makes it a little more challenging.  There is also no iOS way to do this and I don’t know if Win8 phones support this or not.

If the notification listener thing is how this is done, it would be done in native space an not in Corona SDK.

I would suggest going to http://feedback.coronalabs.com and creating a feature request for this and get it voted up.

Rob

@Rob, thank you! That’s what I needed to know. It looks like Corona does not currently support this but that’s ok. It would be a nice feature to have but it’s not critical for me.

Thank you for taking the time research this!

Vince