search

Home  >  Q&A  >  body text

angular.js - When ionic develops a hybrid app, how to monitor the change of mobile phone network type, such as changing from wifi to 4G

I know that using cordova-plugin-network-information can monitor the online and offline status of mobile phones, but it does not provide events for network type changes when online,

My current idea is to set up a timer to detect the network type regularly

漂亮男人漂亮男人2792 days ago653

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-15 17:06:17

    http://ngcordova.com/docs/plugins/network/

    It uses ngCordova, and the event object will return the complete network information object

    reply
    0
  • Cancelreply