- 华为手机在插着4g卡的情况下调用connectWifi会百分之百超时返回12003状态码
经过我们这边不断测试定位,发现是4g卡对华为手机的影响,目前测试两台华为v9,一台华为mate 20pro在插着4g卡的情况下,调用connectWifi 一定会返回12003,time out,拔掉4g卡后,连接百分之百成功,请尽快修复这个问题!
2020-03-20 - wx.connectWifi(Object object)在Android10系统的手机一直fail
wx.connectWifi(Object object)在Android10系统的手机一直fail,返回12003,Android10增加了新的API,请尽快支持: https://developer.android.google.cn/guide/topics/connectivity/wifi-bootstrap.md final NetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() .setSsidPattern(new PatternMatcher("test", PatternMatcher.PATTERN_PREFIX)) .setBssidPattern(MacAddress.fromString("10:03:23:00:00:00"), MacAddress.fromString("ff:ff:ff:00:00:00")) .build(); final NetworkRequest request = new NetworkRequest.Builder() .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) .setNetworkSpecifier(specifier) .build(); final ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); final NetworkCallback networkCallback = new NetworkCallback() { ... @Override void onAvailable(...) { // do success processing here.. } @Override void onUnavailable(...) { // do failure processing here.. } ... }; connectivityManager.requestNetwork(request, networkCallback); ... // Release the request when done. connectivityManager.unregisterNetworkCallback(networkCallback);
2020-01-10