Excuse me,Is this problem solved? I also have the same troubles.I use cordova-plugin-network-information
let networkState = window.navigator.connect.type;
alert(networkState);
The result is unknown.
在浏览器中,网络状态始终为未知。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.