I am writing an android app and trying to figure out if there is a reliable way to determine when the phone is on a specific wifi network.
For example, I want to perform certain actions only when connected to the home wifi.
Does anyone know if it's possible?
Yes, there is a way for this on both, android and iOS/iPhone.
On Android, you need to use this method in the end: android.net.wifi.WifiInfo.getSSID
On iPhone it's a completely different world. You can find a good description of how to do it here: iPhone get SSID without private library