I am trying to develop an app that uses the WiFi aware and WiFi RTT features. According to https://developer.android.com/guide/topics/connectivity/wifi-aware,
However when I run following code to check compatibility of the device, (I am running the program on Samsung Galaxy S9, Android 9, API 28), both variables are returning false. I tried with Huawei Nova 2i (Android 8.0.0, API 26), and I expected to get 'true' for the first variable, but I didn't.
I have googled for a list of WiFi Aware and WiFi RTT compatible devices, but astonishingly, was not able to get anything.
Would be great help if I can get some suggestion/link to a list of compatible devices.
and for WiFi RTT (https://developer.android.com/guide/topics/connectivity/wifi-rtt),Wi-Fi Aware capabilities enable devices running Android 8.0 (API level 26) and higher ...
The device making the ranging request must be running Android 9 (API level 28) or later.
However when I run following code to check compatibility of the device, (I am running the program on Samsung Galaxy S9, Android 9, API 28), both variables are returning false. I tried with Huawei Nova 2i (Android 8.0.0, API 26), and I expected to get 'true' for the first variable, but I didn't.
Java:
boolean hasWiFiAware = getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_AWARE);
boolean hasWiFiRTT = getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_RTT);
I have googled for a list of WiFi Aware and WiFi RTT compatible devices, but astonishingly, was not able to get anything.
Would be great help if I can get some suggestion/link to a list of compatible devices.