CharlesJQuarra opened a new issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225


   
   I am using Cordova-android plugin from a Vue.js application. In cordova 
version 9.0.0, the `cordova` object had the following keys:
   
   ```
   console.log(`{Object.keys(cordova)}`)
   output:
   
define,require,version,platformVersion,platformId,addWindowEventHandler,addStickyDocumentEventHandler,
   
addDocumentEventHandler,removeWindowEventHandler,removeDocumentEventHandler,getOriginalHandlers,
   
fireDocumentEvent,fireWindowEvent,callbackId,callbacks,callbackStatus,callbackSuccess,callbackError,
   callbackFromNative,addConstructor,exec,plugins
   ```
   
   On version 9.1.0, this interface object has some important differences:
   
   ```
   console.log(`{Object.keys(cordova)}`)
   output:
   
define,require,version,platformVersion,platformId,addWindowEventHandler,addStickyDocumentEventHandler,
   
addDocumentEventHandler,removeWindowEventHandler,removeDocumentEventHandler,getOriginalHandlers,
   
fireDocumentEvent,fireWindowEvent,callbackId,callbacks,callbackStatus,callbackSuccess,callbackError,
   callbackFromNative,addConstructor
   ```
   
   As you can see, the objects `exec` and `plugins` are absent, which is how we 
interact with native components
   
   Btw, the upgrade I did was as simple as doing `cordova platform remove 
android` and `cordova platform add [email protected]` and rerunning the same 
codebase


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to