sithwarrior opened a new issue, #268:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/268

   # Bug Report
   Playing video on iOS and shifting from landscape to portrait messes up 
status bar
   
   same as #221 
   ## Problem
   
   ### What is expected to happen?
   Statusbar stays in place
   
   
   ### What does actually happen?
   Content slides up under status bar
   
   
   ## Information
   Watching a video in an iOS Webview, defaults to fullscreen, if you rotate 
your phone to landscape, then back to portrait and exit the video, the status 
bar is then off
   
   our settings is
   
   `<preference name="StatusBarOverlaysWebView" value="false" />`
   
   And we only allow portrait orientation, but watching videos is done in a 
native iOS player by default, which allows rotating.
   
   As the backbutton now is "behind" the status bar, my workaround has been 
setting the eventlistener on `statusTap` and then doing 
   
   ```
   window.StatusBar.overlaysWebView(true);
   window.StatusBar.overlaysWebView(false);
   ```
   
   
   I don't know exactly what causing this, but it seems like the resetup of the 
statusbar isn't called in this situation.
   
   
   ### Command or Code
   see above
   
   
   
   
   ### Environment, Platform, Device
   iOS
   `<preference name="StatusBarOverlaysWebView" value="false" />`
   only allow portrait orientation
   
   
   ### Version information
   Newest Cordova, Cordova IOS, Cordova ionic WKWebview and newest Statusbar 
Plugin
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ 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
   


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

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to