[jira] [Commented] (CB-12533) Windows Issue(Throwing Promise is undefinded error): While using new screen.orientation.lock('landscape') method only
[ https://issues.apache.org/jira/browse/CB-12533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894422#comment-15894422 ] Alexander Sorokin commented on CB-12533: [~purplecabbage] it looks like promise polyfill is also needed on Windows... > Windows Issue(Throwing Promise is undefinded error): While using new > screen.orientation.lock('landscape') method only > - > > Key: CB-12533 > URL: https://issues.apache.org/jira/browse/CB-12533 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Screen Orientation >Affects Versions: Master >Reporter: Vetrivel >Priority: Critical > > In my App, I have installed the "apache/cordova-plugin-screen-orientation" > and I have set screen.orientation.lock('landscape'); to Lock Landscape view > instead of lockOrientation method as plugin go updated few days back.App got > crashes and trowing error "Promise is undefinded error", This issue was not > there in Previous versions when i used old version with method > "lockOrientation". Please let me know when i can expect the updated release > fixing of this issue. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12533) Windows Issue(Throwing Promise is undefinded error): While using new screen.orientation.lock('landscape') method only
[ https://issues.apache.org/jira/browse/CB-12533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894372#comment-15894372 ] Vetrivel commented on CB-12533: --- [~daserge] I am directly installed latest version from GitHub Url :https://github.com/apache/cordova-plugin-screen-orientation in master it seems. Fail Code Snippet:- In File :screenorientation.js var p = new Promise(function(resolve, reject) { if (screenObject.nativeLock != null) { promiseLock = screenObject.nativeLock(orientation); promiseLock.then(function success(res) { resolve(); }, function error(err) { screenObject.nativeLock = null; resolveOrientation(orientation, resolve, reject); }); } else { resolveOrientation(orientation, resolve, reject); } }) Error Message: Unhandle exception at line 57,column 13 in ms-appx://com/apache/cordova-plugin-screen-orientation/www/ Javascript runtime error: 'Promise is undefined' > Windows Issue(Throwing Promise is undefinded error): While using new > screen.orientation.lock('landscape') method only > - > > Key: CB-12533 > URL: https://issues.apache.org/jira/browse/CB-12533 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Screen Orientation >Affects Versions: Master >Reporter: Vetrivel >Priority: Critical > > In my App, I have installed the "apache/cordova-plugin-screen-orientation" > and I have set screen.orientation.lock('landscape'); to Lock Landscape view > instead of lockOrientation method as plugin go updated few days back.App got > crashes and trowing error "Promise is undefinded error", This issue was not > there in Previous versions when i used old version with method > "lockOrientation". Please let me know when i can expect the updated release > fixing of this issue. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12533) Windows Issue(Throwing Promise is undefinded error): While using new screen.orientation.lock('landscape') method only
[ https://issues.apache.org/jira/browse/CB-12533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894016#comment-15894016 ] Sergey Shakhnazarov commented on CB-12533: -- [~vetri50ster] what is the plugin version? Could you post the failing code snippet? > Windows Issue(Throwing Promise is undefinded error): While using new > screen.orientation.lock('landscape') method only > - > > Key: CB-12533 > URL: https://issues.apache.org/jira/browse/CB-12533 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Screen Orientation >Affects Versions: Master >Reporter: Vetrivel >Priority: Critical > > In my App, I have installed the "apache/cordova-plugin-screen-orientation" > and I have set screen.orientation.lock('landscape'); to Lock Landscape view > instead of lockOrientation method as plugin go updated few days back.App got > crashes and trowing error "Promise is undefinded error", This issue was not > there in Previous versions when i used old version with method > "lockOrientation". Please let me know when i can expect the updated release > fixing of this issue. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org