Rename from Environment to PluginEnvironment
MODIFY
www/plugin-loader-for-android_ios.js
www/plugin-loader-for-android_ios.js
@@ -28,7 +28,7 @@ if (!cordova) {
cordova.exec(null, function(message) {
alert(message);
- }, 'Environment', 'isAvailable', ['']);
+ }, 'PluginEnvironment', 'isAvailable', ['']);
}, {
once: true
});

Rename from Environment to PluginEnvironment