Slowdown when tapping notification from lockscreen
Posted: 01 Nov 2016 15:18
First-time poster on this forum. Having just bought Automagic, I'm a beginner and just learning it's features. Being a software developer, I decided to jump straight in and tinker with something. I've found a nice collection of flows called SmartUnlock, and already made quite a few of my own modifications to it.
There is a trigger "SmartUnlock_Trigger_Notification" which is triggered by "Notification on Statusbar Selected: All IDs".
1. The phone is locked, screen off.
2. I turn on the screen and double-tap the ongoing SmartUnlock notification.
3. Phone requests my PIN code.
4. I enter the PIN code.
5. PIN code keypad disappears, and for ~2 seconds only lockscreen wallpapers and the Back button on the Navbar are visible.
6. Finally, phone is ready to use.
The ~2 second slowdown only happens if the "SmartUnlock_Trigger_Notification" flow is enabled. Disabling the flow eliminates this slowdown.
If the flow is enabled but empty (e.g. I removed the initial arrow from the trigger), the slowdown still happens.
This only happens when using a secure lockscreen (PIN). Swipe lock doesn't cause this issue.
I'm using Motorola G3 (Osprey) running a CM13-based ROM (Resurrection Remix). This is probably irrelevant, but I'm using CM profile switching for changing the lock screen type, rather than SmartLock's original "Set Pin/Password" way of disabling the lock. I have 3 CM profiles - DefaultLock with the secure (PIN) lockscreen, InsecureLock with "Don't ask for PIN/Password" option - which shows a Swipe lockscreen, and NoLock with "Disable lockscreen" option with no lockscreen/keyguard whatsoever.
P.S. If the "SmartUnlock_Trigger_Notification" flow is disabled, i.e. there is no trigger listening for the notification selection, double-tapping the notification opens Automagic and shows the flow which created that notification. I guess it's a convenient feature for debugging flows (easy to find which flow created a notification), but on the other hand what if I want to create a notification which does nothing when selected? Do I have to add a trigger for that notification anyway, with no actions inside?
P.P.S. For some reason, SmartUnlock's notification trigger listens to all notification IDs, then uses a condition to check if notification_id is equal to global_SmartUnlock_notificationID. If I remove the condition and try to modify the trigger to listen to {global_SmartUnlock_notificationID} only, the flow doesn't get triggered. What's the reason for that?
There is a trigger "SmartUnlock_Trigger_Notification" which is triggered by "Notification on Statusbar Selected: All IDs".
1. The phone is locked, screen off.
2. I turn on the screen and double-tap the ongoing SmartUnlock notification.
3. Phone requests my PIN code.
4. I enter the PIN code.
5. PIN code keypad disappears, and for ~2 seconds only lockscreen wallpapers and the Back button on the Navbar are visible.
6. Finally, phone is ready to use.
The ~2 second slowdown only happens if the "SmartUnlock_Trigger_Notification" flow is enabled. Disabling the flow eliminates this slowdown.
If the flow is enabled but empty (e.g. I removed the initial arrow from the trigger), the slowdown still happens.
This only happens when using a secure lockscreen (PIN). Swipe lock doesn't cause this issue.
I'm using Motorola G3 (Osprey) running a CM13-based ROM (Resurrection Remix). This is probably irrelevant, but I'm using CM profile switching for changing the lock screen type, rather than SmartLock's original "Set Pin/Password" way of disabling the lock. I have 3 CM profiles - DefaultLock with the secure (PIN) lockscreen, InsecureLock with "Don't ask for PIN/Password" option - which shows a Swipe lockscreen, and NoLock with "Disable lockscreen" option with no lockscreen/keyguard whatsoever.
P.S. If the "SmartUnlock_Trigger_Notification" flow is disabled, i.e. there is no trigger listening for the notification selection, double-tapping the notification opens Automagic and shows the flow which created that notification. I guess it's a convenient feature for debugging flows (easy to find which flow created a notification), but on the other hand what if I want to create a notification which does nothing when selected? Do I have to add a trigger for that notification anyway, with no actions inside?
P.P.S. For some reason, SmartUnlock's notification trigger listens to all notification IDs, then uses a condition to check if notification_id is equal to global_SmartUnlock_notificationID. If I remove the condition and try to modify the trigger to listen to {global_SmartUnlock_notificationID} only, the flow doesn't get triggered. What's the reason for that?