Deny available web portal
I am working on an Android app that will connect the user to a hotel wifi hotspot if they have the app installed.
I have registered the receiver in my application manifest:
<receiver android:name="com.myBroadcastReceiver" >
<intent-filter>
<action android:name="android.net.wifi.supplicant.CONNECTION_CHANGE" />
<action android:name="android.net.wifi.STATE_CHANGE" />
</intent-filter>
</receiver>
Everything works fine with hotspot authentication, but the OS launches a browser for the portal page in captivity. Is there a way for my application to tell Android to suppress this behavior for specific SSIDs, i.e. register this application as a "hotspot authentication handler".
The behavior I'm looking for is the same as CNSetSupportedSSIDs from the iOS Captive Network framework.
+3
source to share