You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/25 20:50:28 UTC

[GitHub] [cordova-plugin-camera] markerio edited a comment on issue #507: iOS 13 Webview Shifted after Camera Closed

markerio edited a comment on issue #507: iOS 13 Webview Shifted after Camera Closed
URL: https://github.com/apache/cordova-plugin-camera/issues/507#issuecomment-535212874
 
 
   We're experiencing the same issue in our app.
   
   Affected plugins are:
   1. cordova-plugin-camera [Image/Video Picking | Take photo from camera]
   2. cordova-plugin-media-capture [Image/Video Capturing]
   
   Apparently, after you get back from the Gallery or Camera app, you immediately notice a top shift in the webview, due to hiding the status bar. iOS 13 does not re-show the status bar as usual.
   
   We concluded 3 solutions by now:
   1. To manually re-show the status bar one we get back from the Gallery/Camera apps. [Fast but ugly solution]
   2. Configure the app to hide the status bar. Thus, adjusting the webview using css Safearea properties to leave a space for the status bar. (As mentioned by @m-s-morgan). [Recommended]
   3. Control the status bar display issue from the plugin itself. Thanks for @Crash-- for his tip on this field.
   
   We managed to solve this by using the second solution because we felt its the safest by now. However, because our app is so huge, we had to go through our css files and adjust all the properties, which is very time consuming.
   
   If you choose to go with the second solution, you need to edit the config.xml file as:
   `<preference name="StatusBarOverlaysWebView" value="true" />`
   
   This will make your app's webview sliding below the top status bar. Please beware that, if you check screen heights in your app using javascript, you may need to double check the values because the viewport height is affected.
   
   Thanks for @m-s-morgan and @Crash-- for their feedbacks.
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org