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 2020/01/08 08:17:52 UTC

[GitHub] [cordova-plugin-screen-orientation] mitesh-shah opened a new issue #58: OnChange event not working

mitesh-shah opened a new issue #58: OnChange event not working
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58
 
 
   I am using this plugin and I wanted to get the event when user rotates the screen. But, I get below error.
   **Error**
   `core.js:15724 ERROR TypeError: Invalid event target
       at setupSubscription (fromEvent.js:50)
       at Observable._subscribe (fromEvent.js:24)
       at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43)
       at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:29)
       at new TestPage (test.page.ts:10)
       at createClass (core.js:22160)
       at createDirectiveInstance (core.js:22029)
       at createViewNodes (core.js:23255)
       at callViewAction (core.js:23571)
       at execComponentViewsAction (core.js:23490)`
   
   **My code**
   `this.screenOrientation.onChange().subscribe(
         () => {
           console.log(this.screenOrientation.type);
         }
       );`
   
   I am using this plugin in conjunction with Angular 7 & ionic 4

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


With regards,
Apache Git Services

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


[GitHub] [cordova-plugin-screen-orientation] timbru31 commented on issue #58: OnChange event not working

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #58: OnChange event not working
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58#issuecomment-571955190
 
 
   Also, this seems like an Angular/Ionic issue. Please verify that the event listening via a plain `window.addEventListener` works.

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


With regards,
Apache Git Services

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


[GitHub] [cordova-plugin-screen-orientation] mitesh-shah edited a comment on issue #58: OnChange event not working

Posted by GitBox <gi...@apache.org>.
mitesh-shah edited a comment on issue #58: OnChange event not working
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58#issuecomment-571984010
 
 
   > Thanks a lot for your issue, however the issue template exists for a reason 😉
   > It helps us to debug the issue further and to provide a solution much faster. With important information missing, we unfortunately can't help you.
   > 
   > Therefore, please edit this issue accordingly or close and create a new one and make sure to provide all the required information.
   
   @timbru31 Thank you for your kind reply :slightly_smiling_face: . I will check with the window listener that you have mentioned in another comment.

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


With regards,
Apache Git Services

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


[GitHub] [cordova-plugin-screen-orientation] timbru31 commented on issue #58: OnChange event not working

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #58: OnChange event not working
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58#issuecomment-571954766
 
 
   Thanks a lot for your issue, however the issue template exists for a reason 😉 
   It helps us to debug the issue further and to provide a solution much faster. With important information missing, we unfortunately can't help you.
   
   Therefore, please edit this issue accordingly or close and create a new one and make sure to provide all the required information.

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


With regards,
Apache Git Services

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


[GitHub] [cordova-plugin-screen-orientation] mitesh-shah commented on issue #58: OnChange event not working

Posted by GitBox <gi...@apache.org>.
mitesh-shah commented on issue #58: OnChange event not working
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58#issuecomment-571984010
 
 
   > Thanks a lot for your issue, however the issue template exists for a reason 😉
   > It helps us to debug the issue further and to provide a solution much faster. With important information missing, we unfortunately can't help you.
   > 
   > Therefore, please edit this issue accordingly or close and create a new one and make sure to provide all the required information.
   
   @timbru31 Thank you for your kind reply :) . I will check with the window listener that you have mentioned in another comment.

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


With regards,
Apache Git Services

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