Distinguish Wifi connection to access apps

We are developing a mobile application for corporate access, which must be launched on a specific wi-fi access.

To make it easier, there are 4 wifi routers in the building where the application needs to be accessed. but the requirement is that the app should only run when the device is connected to one specific wifi router.

Since we are developing an application based on javascript (Cordova), it makes sense if we have control over it. by the way, the app is designed for both iOS and Android.

Any work in this area is really appreciated.

Thank you Aditya

+3


source to share


1 answer


Looks like a GitHub fork might help you (IOS is being added to this fork): https://github.com/companje/org.apache.cordova.wifiinfo

Install

cordova plugin add https://github.com/companje/org.apache.cordova.wifiinfo

      

Get WifiInfo



navigator.wifi.getWifiInfo(success, error, options);

      

OnSuccessData STRONG>

{
    connection: {
    BSSID: BSSID,
    HiddenSSID: HiddenSSID,
    SSID: SSID,
    MacAddress: MacAddress,
    IpAddressInt: IpAddressInt,
    IpAddress: IpAddress,
    NetworkId: NetworkId,
    RSSI: RSSI,
    LinkSpeed: LinkSpeed
    },

    networks: [
    {
        BSSID: BSSID,
        SSID: SSID,
        frequency: frequency,
        level: level,
        capabilities: capabilities
    },
    ...
    ]
}

      

0


source







All Articles