[Feature Request] android intents
Add intents to the app for connect and disconnect
Can you share more context here?
Just came across this and while I can't speak to the original message my guess would be that it's so that an app like Tasker can connect or disconnect Netbird depending on certain criteria. I've personally been testing Netbird as a potential replacement for Tailscale and with Tailscale they have implemented CONNECT_VPN and DISCONNECT_VPN intents that Tasker can then use. Some examples of ways that I've used intents with Tasker include:
- Connecting the VPN when I connect to any network that isn't my home network
- Disconnecting the VPN when I connect to my home network
- Connecting the VPN when I unlock the phone so that if it has disconnected while asleep it will automatically restart the connection
I've not really looked at Android Intents from a developer perspective before but here is some basic information from the Android developer information, https://developer.android.com/guide/components/intents-filters. I know the Always on VPN settings in Android are possible, but I prefer the Tasker approach with intents that can connect or disconnect based on a number of different criteria.
Thanks for sharing @ahsokatoa. We are looking into supporting it soon. We will come back if we have any questions.