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?
Block status notification on lock screen
Moderator: Martin
Re: Block status notification on lock screen
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.
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.
Re: Block status notification on lock screen
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
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