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


1 answer


I don’t think you can do this, as support for portals in portals is not a well supported API in the Android SDK.



If it is not a standard API, it means that the other vendor might have a different way to make this discovery and login

0


source







All Articles