3 Replies Latest reply on Sep 2, 2016 7:32 AM by joshm29708292

    Plugin Error in Phonegap build iPA File

    abhisheks53290710 Level 1

      Dear,

       

      We have build an iPA file using Phonegap build site. The application was working successfully and has below mentioned plugins:

      cordova-plugin-device

      cordova-plugin-file

      cordova-plugin-file-transfer

      cordova-plugin-media

      cordova-plugin-network-information

      cordova-plugin-screen-orientation

      cordova-plugin-splashscreen

      cordova-plugin-whitelist

      io.litehelpers.cordova.sqlitestorage

       

      When the application is opened in IOS device it gives an error saying TypeError: undefined is not an object (evaluating 'navigator.connection.type')

      The network plugin was in use since some months now and also there was no change to the code which referred to the plugin features:

      var networkState = navigator.connection.type; /**********Application Error points to this Line**********/

          var states = {};

          states[Connection.UNKNOWN] = 'Unknown connection';

          states[Connection.ETHERNET] = 'Ethernet connection';

          states[Connection.WIFI] = 'WiFi connection';

          states[Connection.CELL_2G] = 'Cell 2G connection';

          states[Connection.CELL_3G] = 'Cell 3G connection';

          states[Connection.CELL_4G] = 'Cell 4G connection';

          states[Connection.CELL] = 'Cell generic connection';

          states[Connection.NONE] = 'No network connection';

       

      Can anyone please help us resolve the issue?

       

      Thanks,

      Abhishek.