Heshyo commented on issue #268:
URL: 
https://github.com/apache/cordova-plugin-statusbar/issues/268#issuecomment-1906185497

   I guess I have the same issue. My app is also portrait only, except when 
playing a video where the player allows both portrait and landscape.
   
   If I open a video in portrait, and stays in portrait, then no problem.
   
   If I open a video in portrait, go to landscape, then close the video, then 
no problem.
   
   The issue arises when opening the video in portrait, going to landscape, 
then portrait again, then closing the video. The app is now on top of the 
status bar, and simply calling `window.StatusBar.overlaysWebView(false);` does 
not help. As @sithwarrior mentioned, you have to change the overlay to `true` 
then `false`:
   
   ```
   window.StatusBar.overlaysWebView(true);
   window.StatusBar.overlaysWebView(false);
   ```
   
   I call this in the `webkitendfullscreen` event.


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

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