Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12529

Support default 'cellular' detection into cordova-plugin-network-information for Android

    XMLWordPrintableJSON

Details

    Description

      cordova-plugin-network-information/src/android/NetworkManager java class :
      Method getType() : In case of unknown cellular network detected, returned value is TYPE_UNKNOWN (equals "unknown" string)
      It seems it is better in this case that returns "cellular" string.

      For this simply add a constant :

      public static final String TYPE_CELL = "cellular";

      And add a 'else' statement after all 'else if' statements detecting the cellular connection sub-types :

      else

      { return TYPE_CELL; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            portos Zia Sergio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: