https://play.google.com/store/apps/details?id=com.androidyou.wifiloginnew
I used this for years and it's great. However, its been buggy with my new Android 7 phone and doesn't auto trigger anymore. There is supposedly a fix to this since the reviews are still very solid. This also happened to me recently so I still need to do some research