Using Tasker to Sign Into WiFi Networks on Android (including Lollipop)

1 min read

One of the frustrations with the Lollipop update was actually supposed to be good for users:

Yes, Smart network switch.  It’s actually described really well right there.  And ideally, it works great.

Except for one thing.  When you have a network (say, at work or at a coffee shop) where you have to accept terms and conditions.  Then, the OS is smart enough to figure out that you can’t connect to the internet via WiFi (because you haven’t accepted the ToS), so instead of presenting you with the login page, it automagically switches to mobile data.

Which, um, is not smart.

So I’ve come up with a solution using Tasker (and nothing but Tasker).

Tasker is a paid app, but well worth the cash.  Yes, it has a huge learning curve, but it’s totally worth it.

My solution is made up of a profile and two tasks:

wifi_login.prf

The profile that is called upon connecting to any wifi network

net.checkip.tsk

Calls https://checkip.dyndns.org/ . If the response is anything that doesn’t make sense, it sets the variable %IPaddy to 0.0.0.0 ; otherwise it will return with the valid address.

net.logon.tsk

Calls checkip and if the result is 0.0.0.0, launches Chrome, then afterward calls checkip again to set the variable properly.

Installation is like anything else for Tasker. Once you’ve installed Tasker, navigate over to the Tasker wiki page for WiFi Login: https://tasker.wikidot.com/wifilogin (be sure to click the “Files” button to see the files) or my GitHub page for Tasker stuff: https://github.com/uriel1998/tasker-weasel .

If you’re having trouble importing stuff into tasker, check this video out:

blankWas this post helpful or insightful? Buy me a coffee here or here and share this post with others!

Popular posts:

  • The difference between boundaries and rules
  • Review: MAFA - MPD client for Android
  • Organizing and Tiling Your Windows on #Openbox Using Only... Openbox
  • If there's one Nazi (or a racist) at the table...
  • Weekend Project: Whole House and Streaming Audio for Free with MPD
  • Two Ways to get CMYK Separation Using GIMP Instead of Photoshop in 2022

Recent Posts