gitlizm1981 edited a comment on issue #62:
URL:
https://github.com/apache/cordova-plugin-screen-orientation/issues/62#issuecomment-665555656
i had the same issue, it seems the plugin is still not loaded at the time
the app component already start to initialize, my current workaround solution
is to add below code to delay the app component loading process:
if(this.platform.is('ios'){
const startTime = new Date().getTime() + parseInt('3000', 10);
while(new Date().getTime() < startTime) {};
}
call the screenOrientation operations here..
----------------------------------------------------------------
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]