You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/01 15:44:23 UTC

[GitHub] [cordova-android] CharlesJQuarra opened a new issue #1225: Cordova Interface changes on 9.1.0

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 android@9.1.0` 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:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek commented on issue #1225: Cordova Interface changes on 9.1.0

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225#issuecomment-830656206


   ![Screenshot from 2021-05-01 13-12-03](https://user-images.githubusercontent.com/11200662/116788241-eafd4480-aa7e-11eb-96f7-ea5e7ac2107c.png)
   
   I'm not seeing the problem on my end. Are you able to reproduce in a simple cordova application (without the use of frameworks or third-party plugins)?


-- 
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:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek commented on issue #1225: Cordova Interface changes on 9.1.0

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225#issuecomment-917761743


   Closing due to staleness.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek edited a comment on issue #1225: Cordova Interface changes on 9.1.0

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225#issuecomment-830656206


   ![Screenshot from 2021-05-01 13-12-03](https://user-images.githubusercontent.com/11200662/116788241-eafd4480-aa7e-11eb-96f7-ea5e7ac2107c.png)
   
   I'm not seeing the problem on my end. Are you able to reproduce in a simple cordova application (without the use of frameworks or third-party plugins)?
   
   > ... plugins are absent, which is how we interact with native components
   
   `plugins` is not something we define on `Cordova`, it is likely another plugin that is clobbering that namespace. You should have `exec` however.


-- 
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:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek closed issue #1225: Cordova Interface changes on 9.1.0

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek edited a comment on issue #1225: Cordova Interface changes on 9.1.0

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1225:
URL: https://github.com/apache/cordova-android/issues/1225#issuecomment-830656206


   ![Screenshot from 2021-05-01 13-12-03](https://user-images.githubusercontent.com/11200662/116788241-eafd4480-aa7e-11eb-96f7-ea5e7ac2107c.png)
   
   I'm not seeing the problem on my end. Are you able to reproduce in a simple cordova application (without the use of frameworks or third-party plugins)?
   
   > ... plugins are absent, which is how we interact with native components
   
   `plugins` is not something we define on `Cordova`, it is likely another plugin that is clobbering that namespace.


-- 
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:
users@infra.apache.org



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