Page 1 of 1

Notification on Statusbar Selected trigger from lockscreen

Posted: 24 Jul 2015 14:45
by sambarlick
Hi Martin,

I am trying to use notification on Statusbar Selected as a trigger for a flow whilst the lockscreen is active.

The flow isn't being triggered whilst the lockscreen is active.

Does the trigger not work whilst the lockscreen is active?

Thanks, Sam

Re: Notification on Statusbar Selected trigger from lockscr

Posted: 24 Jul 2015 15:26
by Martin
Hi Sam,

This should also work on the lockscreen. Following flow is executed on an Android 5 device when the notification is selected (needs to be pressed twice and PIN needs to be entered before the flow executes):
-trigger Notification on Statusbar selected
-action Vibrate

Does this flow work on your device?

What device model and Android version are you using?

Regards,
Martin

Re: Notification on Statusbar Selected trigger from lockscr

Posted: 24 Jul 2015 15:42
by sambarlick
Hi Martin,

That flow works and mine works once the pin has been entered, but i wanted the flow to activate without entering the pin.

Is it possible?

I am using Android 5.0.1 on a HTC One M8.

Thanks, Sam

Re: Notification on Statusbar Selected trigger from lockscr

Posted: 27 Jul 2015 18:16
by Martin
Hi Sam,

Unfortunately that's the normal behavior enforced by Android. I'm not sure if there's a workaround possible using this trigger.

You could create a custom widget with a clickable action and display this widget when the lockscreen is shown. Something like this could work:
Flow 1
-trigger Display State: On
-condition Keyguard Locked
--> true: action Show Custom Widget Overlay

Flow 2
-trigger User Present
-action Hide Custom Widget Overlay

Regards,
Martin

Re: Notification on Statusbar Selected trigger from lockscr

Posted: 27 Jul 2015 20:17
by sambarlick
Thanks Martin, I'll try it that way.

Sam

Re: Notification on Statusbar Selected trigger from lockscr

Posted: 30 Jul 2015 13:41
by sambarlick
Hi Martin,

Just letting you know the widget suggestion works great. It executes the flow whilst the phone is locked.

Thanks for your help.

Sam