iOS app sometimes launches a bit shrinked


#1
  • Cocoon Version:
    latest

  • Basic description of the problem:
    I have problem with my app for iOS built with C2
    Either webview or webview+
    App launches ok but sometimes (lets say one out of ten launches) it just dont fill entire screen so at the bottom i have a black bar. Entire app is a bit shrinked but since i use scale outer, sides stay covered. observe images:

OK
ERROR

  • Device info:
    any iphone ios 11

  • Webview engine(s):
    both Webview and Webview+

  • Framework/game engine (if relevant):
    Construct 2

heres my config:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="xxxxxxxxxxxxxx" version="1.0" ios-CFBundleIdentifier="xxxxxxxxxxxxxx">
    <name>xxxxxxxxxxxxxx</name>
    <description>xxxxxxxxxxxxxxxxxx</description>
    <author href="xxxxxxxxx" email="xxxxxxxx">xxxxxxx</author>
    <preference name="orientation" value="portrait"/>
    <preference name="fullscreen" value="false"/>
    <preference name="DisallowOverscroll" value="true"/>
    <preference name="deployment-target" value="8.0"/>
    <access origin="*"/>
    <plugin name="cordova-plugin-file"/>
    <access origin="*"/>
    <preference name="iosPersistentFileLocation" value="Library"/>
    <preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root"/>
    <allow-intent href="file://*/*"/>
    <plugin name="cordova-plugin-inappbrowser"/>
    <plugin name="cordova-plugin-whitelist"/>
    <access origin="*"/>
    <allow-intent href="http://*/*"/>
    <allow-intent href="https://*/*"/>
    <allow-intent href="tel:*"/>
    <allow-intent href="sms:*"/>
    <allow-intent href="mailto:*"/>
    <allow-intent href="geo:*"/>
    <allow-intent href="file://*/*"/>
    <plugin name="cordova-plugin-wkwebview-engine"/>
    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine"/>
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine"/>
    <preference name="webView.scrollView.contentInsetAdjustmentBehavior" value="never"/>
    <engine name="ios"/>
    <preference name="Orientation" value="portrait"/>
    <plugin name="cordova-plugin-indexeddb" spec="*"/>
    <platform name="ios">
        <preference name="enabled" value="true"/>
        <name>xxxxxxxx</name>
        <splash src="www/splash/ios/Default@2x~universal~anyany.png"/>
        <splash src="www/splash/ios/Defaulf-Portrait-2436h.png"/>
    </platform>
    <plugin name="cordova-plugin-geolocation" spec="*"/>
    <plugin name="cordova-plugin-splashscreen" spec="*"/>
    <preference name="SplashScreen" value="screen"/>
    <preference name="SplashScreenDelay" value="5000"/>
    <plugin name="cordova-plugin-ios-non-exempt-encryption" spec="*"/>
</widget>

#2

Hey @vixus
I had the same issue in my last app top and bottom area was having a black area it it was mainly in Bigger screens phones so i just switch to the canvas+ and it solved that issue. Give it a try.


#3

Propably the WKWebView Engine can crack the display. Can you try it without this plugin?

Best,
Andy


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.