Using the getPicture causes app orientation to change even if it is locked
Bug Report
I have an app that is locked to landscape (the config.xml Orientation preference is set to landscape) When taking a photo using getPicture it all works great. But if the camera enters portrait mode, when I return to the app the orientation of the app has also changed to portrait mode. This is locked and there seems to be no way to return the orientation.
What is expected to happen?
Orientation of the app in config.xml should be respected and not change at all when using getPicture.
What does actually happen?
Orientation of app changes from landscape to portrait.
Command or Code
1 - Ensure cordova app orientation preference is set to landscape in config.xml.
2 - Call navigator.camera.getPicture(()=>{})
3 - Ensure that device is rotated to portrait mode whilst taking picture
4 - Take picture
5 - Observe the app is now in portrait mode
Environment, Platform, Device
IOS Cordova engine: v4.5.5 Cordova: v8.1.1 Plugin: v4.0.3 IOS version: 12.1.4 Device: iPhoneX
Version information
Xcode
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
If theres any more info required let me know and I will be happy to help!
Cheers!
Same issue in the latest version .. Do we have any workaround ?