cordova-plugin-camera-preview: Android 8.0 Oreo `toBack` not working
Is anyone seeing problems using the toBack
functionality with android 8.0? I’ve pulled down the latest on master, but still seeing problems.
The camera preview is completely covering the html. Keeping everything else the same, but using an android phone on 7.0, toBack
does work.
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 22 (4 by maintainers)
@lec00q, you can try setting xwalkZOrderOnTop to true in your config.xml. That worked for me and should work for anyone that doesn’t ever need to bring the camera view to the front, or have anything else on top of the xwalk webview.
<preference name="xwalkZOrderOnTop" value="true" />
@medi-y-sato : update cordova android version.
How to update ? cordova platform remove android // if already install cordova platform add android@6.3.0
The only line you need to add is
<preference name="CrosswalkAnimatable" value="true" />
Just like all other cordova settings.@troyberg I haven’t tested it out, but I can test Friday and let you know.
Just for the stats, i have the same problem… hope a solution is found soon. @troyberg i believe i already use the latest Cordova Android Problem description: The HTML overlay is not visible on android phone with android 8.0