Block status notification on lock screen

Post your questions and help other users.

Moderator: Martin

Post Reply
eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Block status notification on lock screen

Post by eldron » 04 Sep 2015 14:19

Hi,
i just wrote a very simple flow that creates a status notification after 2 unsuccessful login attempts.
The flow works, but I don't want the person who attempted the logins to see that the attempts were logged.
The trouble is that the notification immediately pops up on the lockscreen.
Any ideas on how i can prevent that?

eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Re: Block status notification on lock screen

Post by eldron » 04 Sep 2015 14:37

Just after writing my post i had an idea and found a solution. I split the task into two flows. the first one recognises the attempts and then activates the second flow which creates the notification and then deactivates itself again.

The solution seems to work, but i think there must be a better way and a possibility to put everything into one flow.
Another question came up though: is it possible to state in the notification how many attempts were made?
Edit: i have solved it now, by turning off the status notifications on the lock screen in my phone settings. To see how many attempts were made i can look into the log.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Block status notification on lock screen

Post by Martin » 05 Sep 2015 10:51

Trigger Login Attempt provides the number of failed attempts in variable failed_login_attempt to the flow (check the help page of the trigger and scroll down to the variables section) so you could store the number of failed login attempts in a global variable and show the count when the user successfully unlocks the device.

Flow 1
-trigger Login Attempt: Failed
-action Script: global_failed_logins = failed_login_attempt;

Flow 2
-trigger Login Attempts: Successful after failed
-action Notification on Statusbar: someone failed {global_failed_logins} times to log in.

Regards,
Martin

Post Reply