Is there a way to always fire up my express VPN app whenever I open an incognito tab in chrome?
Basically something like a batch file or shell script maybe that can trigger this?
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
When you open incognito tabs in chrome, there is a notification that appears with the message "Close all incognito tabs". You can use it to automate the process of launching your app.
In the Interface section, select the Notification posted block. Click on it, select chrome as the package and set Chrome as the title on the Input arguments section. In the output arguments section, set x (or any name).
In the General section, select the Expression true? block. Click on it and set "Close all incognito tabs" as the formula.
In the Apps section, select App start. Click on it, select your app in the package section.
Link the block as seen on the image below.
Save the macro. Grant Automate the Notification Access permission. Click Start.
When you open an incognito tab in Chrome, when a Notification with the title Chrome appears, if the notification has "Close all incognito tabs", the app selected in step 3 will start.
Note: I don't have your app installed. So I stopped my demonstration at step 3. You could play with other blocks for instance to click at some part of the screen to click a button, minimize the app, go back to chrome after opening it, etc.