You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/22 21:52:48 UTC

[GitHub] elbartostrikesagain commented on issue #80: Error: Connection is not defined

elbartostrikesagain commented on issue #80: Error: Connection is not defined
URL: https://github.com/apache/cordova-plugin-network-information/issues/80#issuecomment-456577605
 
 
   I also have this problem, only when building on Android. I'm on Android 9, cordova 7.1.0 / phonegap 8.2.2. generated project via the phonegap hello world template.
   
   plugin list shows: `cordova-plugin-network-information 1.3.4`
   
   example code:
   ```
   var app = {
       // Application Constructor
       initialize: function() {
           this.bindEvents();
       },
       bindEvents: function() {
           document.addEventListener('deviceready', this.onDeviceReady, false);
       },
       onDeviceReady: function() {
           console.log(Connection.NONE)
       },
   };
   ```
   
   Android debug output:
   ```
   01-22 14:51:58.578 29084 29084 D SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 10 : Uncaught ReferenceError: Connection is not defined
   01-22 14:51:58.578 29084 29084 I chromium: [INFO:CONSOLE(10)] "Uncaught ReferenceError: Connection is not defined", source: file:///android_asset/www/js/index.js (10)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org