我知道使用cordova-plugin-network-information可以监听手机online和offline,但是它没有提供online时,联网类型改变的事件,
cordova-plugin-network-information
我目前的想法是开一个定时器,定时检测网络type
http://ngcordova.com/docs/plugins/network/
It uses ngCordova, and the event object will return the complete network information object
http://ngcordova.com/docs/plugins/network/
It uses ngCordova, and the event object will return the complete network information object