How to disable iOS Shortcut ( Automation ) Programmatically?

95 Views Asked by At

I have made an automation to open my app whenever a user opens Facebook app. When the user taps on "Continue with Facebook" the automation which is forcing to open my App show be disabled for 2 minutes. How can I achieve this?

1

There are 1 best solutions below

0
Kurisuchan On

Since you didn't provide enought details about how your shortcut works, i will suggest a general idea. You can start a timer in your shortcut, which updates a variable whenever timer is running or not. If your variable says your timer is running, then skip your shortcut logic.