I have a Samsung 6.0.1 that I am using in my development. I want to know if a network is captive portal. There have been recent changes that make this info known to the developer, which is nice. But there doesn't seem to be a way to just retrieve the data from NetworkInfo.
I have found that if I can get my hands on an instance of Wi-Fi NetworkInfo I can call getExtraInfo and an indication of captive portal will be in there as a string "captive_portal_detected" It's weird this is a string and not a boolean property, but that's not my question.
What version of Android did this string start popping up and is this part of the regular OS or something the Samsung guys popped in for the s7? Can I rely on this string as an indicator that the access point associated with the NetworkInfo is in fact captive portal? There is no documentation on this value that I can find anywhere.