[jira] [Commented] (CB-12533) Windows Issue(Throwing Promise is undefinded error): While using new screen.orientation.lock('landscape') method only

2017-03-03 Thread Vetrivel (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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] [Created] (CB-12533) Windows Issue(Throwing Promise is undefinded error): While using new screen.orientation.lock('landscape') method only

2017-03-03 Thread Vetrivel (JIRA)
Vetrivel created CB-12533:
-

 Summary: 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-12511) make iOS rotate as needed when screen.orientation.lock('landscape'); is called

2017-03-02 Thread Vetrivel (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15892487#comment-15892487
 ] 

Vetrivel commented on CB-12511:
---

Sorry, I am not able to share the sample code. But scenario is same above and 
it is not rotate to landscape view from portrait view at the first time in 
IPad. Please let me know how to get rid of this issue.



> make iOS rotate as needed when screen.orientation.lock('landscape'); is called
> --
>
> Key: CB-12511
> URL: https://issues.apache.org/jira/browse/CB-12511
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Screen Orientation
>Reporter: Vetrivel
>Assignee: Kerri Shotts
>  Labels: iOS, iOS10
>
> In my App, I have installed the "apache/cordova-plugin-screen-orientation" 
> and I have set screen.orientation.lock('landscape'); to Lock Landscape view. 
> But at first time in IPad (ios@10), If the user view in portrait view once 
> "screen.orientation.lock('landscape');" is called it is not rotate to 
> landscape view instead of that it stay in portrait view. But in other device 
> it is working as excepted. How to get rid of this issue.When i can expect the 
> updated release.



--
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-12511) make iOS rotate as needed when screen.orientation.lock('landscape'); is called

2017-02-28 Thread Vetrivel (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15887520#comment-15887520
 ] 

Vetrivel commented on CB-12511:
---

I have used plugin version from GitHub 
url(https://github.com/apache/cordova-plugin-screen-orientation) for 
installation.

> make iOS rotate as needed when screen.orientation.lock('landscape'); is called
> --
>
> Key: CB-12511
> URL: https://issues.apache.org/jira/browse/CB-12511
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Screen Orientation
>Reporter: Vetrivel
>Assignee: Kerri Shotts
>  Labels: iOS, iOS10
>
> In my App, I have installed the "apache/cordova-plugin-screen-orientation" 
> and I have set screen.orientation.lock('landscape'); to Lock Landscape view. 
> But at first time in IPad (ios@10), If the user view in portrait view once 
> "screen.orientation.lock('landscape');" is called it is not rotate to 
> landscape view instead of that it stay in portrait view. But in other device 
> it is working as excepted. How to get rid of this issue.When i can expect the 
> updated release.



--
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] [Created] (CB-12511) make iOS rotate as needed when screen.orientation.lock('landscape'); is called

2017-02-27 Thread Vetrivel (JIRA)
Vetrivel created CB-12511:
-

 Summary: make iOS rotate as needed when 
screen.orientation.lock('landscape'); is called
 Key: CB-12511
 URL: https://issues.apache.org/jira/browse/CB-12511
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Screen Orientation
Reporter: Vetrivel


In my App, I have installed the "apache/cordova-plugin-screen-orientation" and 
I have set screen.orientation.lock('landscape'); to Lock Landscape view. But at 
first time in IPad (ios@10), If the user view in portrait view once 
"screen.orientation.lock('landscape');" is called it is not rotate to landscape 
view instead of that it stay in portrait view. But in other device it is 
working as excepted. How to get rid of this issue.When i can expect the updated 
release.



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