Cordova Failed to create webview android 4.x.x



  • I am building an application with Quasar + Cordova. Specifically for a tablet running andriod 4.4.4 ( latest version for this tablet )

    The app compiles for build with no error using the following command:

    quasar d -m cordova -T Android
    

    The problem I am facing is that when running the app on the tablet itself or on the emulator, it crashes on start.

    I get the following error on logcat:

    11-14 15:19:17.423 3153-3153/com.alameenazad.primo E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.alameenazad.primo, PID: 3153
        java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alameenazad.primo/com.alameenazad.primo.MainActivity}: java.lang.RuntimeException: Failed to create webview. 
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
            at android.app.ActivityThread.access$800(ActivityThread.java:135)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5017)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
            at dalvik.system.NativeStart.main(Native Method)
         Caused by: java.lang.RuntimeException: Failed to create webview. 
            at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82)
            at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:206)
            at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:202)
            at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:146)
            at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
            at com.alameenazad.primo.MainActivity.onCreate(MainActivity.java:39)
            at android.app.Activity.performCreate(Activity.java:5231)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
            at android.app.ActivityThread.access$800(ActivityThread.java:135) 
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
            at android.os.Handler.dispatchMessage(Handler.java:102) 
            at android.os.Looper.loop(Looper.java:136) 
            at android.app.ActivityThread.main(ActivityThread.java:5017) 
            at java.lang.reflect.Method.invokeNative(Native Method) 
            at java.lang.reflect.Method.invoke(Method.java:515) 
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
            at dalvik.system.NativeStart.main(Native Method) 
         Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80)
            at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:206) 
            at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:202) 
            at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:146) 
            at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224) 
            at com.alameenazad.primo.MainActivity.onCreate(MainActivity.java:39) 
            at android.app.Activity.performCreate(Activity.java:5231) 
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
            at android.app.ActivityThread.access$800(ActivityThread.java:135) 
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
            at android.os.Handler.dispatchMessage(Handler.java:102) 
            at android.os.Looper.loop(Looper.java:136) 
            at android.app.ActivityThread.main(ActivityThread.java:5017) 
            at java.lang.reflect.Method.invokeNative(Native Method) 
            at java.lang.reflect.Method.invoke(Method.java:515) 
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
            at dalvik.system.NativeStart.main(Native Method) 
         Caused by: java.lang.NoSuchMethodError: android.webkit.CookieManager.setAcceptThirdPartyCookies
            at org.apache.cordova.engine.SystemCookieManager.<init>(SystemCookieManager.java:39)
            at org.apache.cordova.engine.SystemWebViewEngine.<init>(SystemWebViewEngine.java:86)
            at org.apache.cordova.engine.SystemWebViewEngine.<init>(SystemWebViewEngine.java:76)
            at java.lang.reflect.Constructor.constructNative(Native Method) 
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
            at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80) 
            at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:206) 
            at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:202) 
            at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:146) 
            at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224) 
            at com.alameenazad.primo.MainActivity.onCreate(MainActivity.java:39) 
            at android.app.Activity.performCreate(Activity.java:5231) 
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 
            at android.app.ActivityThread.access$800(ActivityThread.java:135) 
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
            at android.os.Handler.dispatchMessage(Handler.java:102) 
            at android.os.Looper.loop(Looper.java:136) 
            at android.app.ActivityThread.main(ActivityThread.java:5017) 
            at java.lang.reflect.Method.invokeNative(Native Method) 
            at java.lang.reflect.Method.invoke(Method.java:515) 
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
            at dalvik.system.NativeStart.main(Native Method) 
    

    I tried running the app on an emulator with a version 7.x and the app runs fine. Tried installing cross walk webview but that does nothing to the app.

    Here is my cordova config.xml

    <?xml version='1.0' encoding='utf-8'?>
    <widget android-versionCode="19" id="com.alameenazad.primo" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:tools="http://schemas.android.com/tools">
        <name>Primo</name>
        <description>primo menu application</description>
        <author email="alameen.azad@pm.me" href="alameenazad.github.io">
            Alameen Azad
        </author>
        <content src="index.html" />
        <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:*" />
        <platform name="android">
            <allow-intent href="market:*" />
        </platform>
        <platform name="ios">
            <allow-intent href="itms:*" />
            <allow-intent href="itms-apps:*" />
        </platform>
        <allow-navigation href="about:*" />
        <preference name="android-minSdkVersion" value="19" />
        <preference name="android-targetSdkVersion" value="19" />
        <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest">
            <manifest xmlns:tools="http://schemas.android.com/tools" />
        </edit-config>
        <config-file parent="/manifest" target="AndroidManifest.xml">
            <uses-sdk tools:overrideLibrary="org.apache.cordova" />
        </config-file>
    </widget>
    
    

    I had to add the last lines due to this issue : https://github.com/apache/cordova-android/issues/498

    I am almost done with the project and I can deliver it to the client this week. Kindly advise on how I can go through this.

    Any other detail needed I will provide.



  • @Alameen said in Cordova Failed to create webview android 4.x.x:

    quasar d -m cordova -T Android

    This is not a build command: d is ````dev```
    https://quasar.dev/quasar-cli/developing-cordova-apps/build-commands

    What version of cordova are you using?
    Please post the output of quasar info

    If it reports the latest version of cordova 9.x, it does not work for android 4.x
    because Cordova has increased the minimum SDK version to 22, we no longer support or test with Android 5.0 or lower.

    https://cordova.apache.org/announcements/2020/06/29/cordova-android-9.0.0.html

    Btw not directly anything to do with cordova, but all android devices with android version 7 or older are unsupported. Meaning no more updates, increased security risks.



  • @dobbel

    the d command works like dev

    I have figured that out and rolled back to version :

    cordova - 8.1.2

    I removed cordova and started the installation again within quasar.

    The app launched with a white screen on Android 4.4.4. I thought I should install crosswalk again and I did. That was successful but I ran into an issue with ABis as it was making the app with arm64-v8a while the emulator and the tablet require different ABIs ( x86 for the emulator.)

    I tried the following plugin : https://github.com/Ponsen/cordova-plugin-abi-filter

    the app still runs into a white screen with the following errors on logcat:

    11-15 17:19:16.402 5084-5084/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 17:19:16.402 5084-5084/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 17:19:16.932 5084-5084/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 17:19:16.932 5084-5084/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 17:19:16.982 5084-5084/com.alameenazad.primo E/chromium: [ERROR:xwalk_platform_notification_service.cc(143)] Not implemented reached in virtual bool xwalk::XWalkPlatformNotificationService::GetDisplayedPersistentNotifications(content::BrowserContext*, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >*)
    11-15 17:19:16.982 5084-5084/com.alameenazad.primo E/chromium: [ERROR:xwalk_browser_context.cc(88)] Failed to read preference, error num: 0
    11-15 17:19:17.012 5084-5084/com.alameenazad.primo E/dalvikvm: Could not find class 'org.chromium.content.browser.FloatingWebActionModeCallback', referenced from method org.chromium.content.browser.ContentViewCore.startFloatingActionMode
    11-15 17:19:17.262 5084-5084/com.alameenazad.primo E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method org.chromium.base.ApiCompatibilityUtils.setTaskDescription
    11-15 17:19:17.262 5084-5084/com.alameenazad.primo E/dalvikvm: Could not find class 'org.chromium.net.NetworkChangeNotifierAutoDetect$MyNetworkCallback', referenced from method org.chromium.net.NetworkChangeNotifierAutoDetect.<init>
    11-15 17:19:17.272 5084-5084/com.alameenazad.primo E/dalvikvm: Could not find class 'android.net.Network[]', referenced from method org.chromium.net.NetworkChangeNotifierAutoDetect.getAllNetworksFiltered
    11-15 17:19:17.342 5084-5130/com.alameenazad.primo E/libEGL: validate_display:254 error 3008 (EGL_BAD_DISPLAY)
    11-15 17:19:17.402 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 17:19:17.402 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 17:19:17.402 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008a34
    11-15 17:19:17.412 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008073
    11-15 17:19:17.412 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ff
    11-15 17:19:17.442 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 17:19:17.442 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 17:19:17.502 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 17:19:17.502 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 17:19:17.512 5084-5130/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x000088ff
    

    I am still debugging, googling, and trying solutions 😞

    Btw not directly anything to do with cordova, but all android devices with android version 7 or older are unsupported. Meaning no more updates, increased security risks.

    The tablets will remain offline. They will connect them to a local server when they do updates on the Admin panel.



  • so I restarted from scratch again. The app still runs with a white screen. I haven’t installed any cordova plugins. This is what I get in logcat ( filtered )

    11-15 18:09:21.453 5735-5735/? D/dalvikvm: Not late-enabling CheckJNI (already on)
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo I/CordovaLog: Changing log level to DEBUG(3)
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo I/CordovaActivity: Apache Cordova native platform version 7.1.4 is starting
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo D/CordovaActivity: CordovaActivity.onCreate()
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method org.apache.cordova.CordovaInterfaceImpl.hasPermission
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 1: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x0009
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method org.apache.cordova.CordovaInterfaceImpl.requestPermissions
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 18: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
    11-15 18:09:21.523 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x000a
    11-15 18:09:21.573 5735-5735/com.alameenazad.primo V/WebViewChromium: Binding Chromium to the background looper Looper (main, tid 1) {a4fbea90}
    11-15 18:09:21.573 5735-5735/com.alameenazad.primo I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
    11-15 18:09:21.573 5735-5735/com.alameenazad.primo I/BrowserProcessMain: Initializing chromium process, renderers=0
    11-15 18:09:21.603 5735-5754/com.alameenazad.primo W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
    11-15 18:09:21.643 5735-5735/com.alameenazad.primo D/EGL_emulation: eglCreateContext: 0xb960ce90: maj 3 min 0 rcv 3
    11-15 18:09:21.653 5735-5735/com.alameenazad.primo D/EGL_emulation: eglMakeCurrent: 0xb960ce90: ver 3 0
    11-15 18:09:21.653 5735-5735/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 18:09:21.653 5735-5735/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 18:09:21.723 5735-5735/com.alameenazad.primo D/dalvikvm: GC_FOR_ALLOC freed 85K, 5% free 2807K/2944K, paused 5ms, total 5ms
    11-15 18:09:21.723 5735-5735/com.alameenazad.primo I/dalvikvm-heap: Grow heap (frag case) to 3.265MB for 500412-byte allocation
    11-15 18:09:21.723 5735-5744/com.alameenazad.primo D/dalvikvm: GC_FOR_ALLOC freed <1K, 5% free 3295K/3436K, paused 4ms, total 4ms
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.webkit.CookieManager.setAcceptThirdPartyCookies, referenced from method org.apache.cordova.engine.SystemCookieManager.<init>
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 157: Landroid/webkit/CookieManager;.setAcceptThirdPartyCookies (Landroid/webkit/WebView;Z)V
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x001b
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.webkit.CookieManager.flush, referenced from method org.apache.cordova.engine.SystemCookieManager.flush
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 151: Landroid/webkit/CookieManager;.flush ()V
    11-15 18:09:21.753 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/ClientCertRequest;)
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/ClientCertRequest;)
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.webkit.WebViewClient.onReceivedClientCertRequest, referenced from method org.apache.cordova.engine.SystemWebViewClient.onReceivedClientCertRequest
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 209: Landroid/webkit/WebViewClient;.onReceivedClientCertRequest (Landroid/webkit/WebView;Landroid/webkit/ClientCertRequest;)V
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6f at 0x001a
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/webkit/PermissionRequest;)
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.webkit.PermissionRequest.getResources, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onPermissionRequest
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 168: Landroid/webkit/PermissionRequest;.getResources ()[Ljava/lang/String;
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x000f
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo I/dalvikvm: Could not find method android.webkit.WebChromeClient$FileChooserParams.createIntent, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onShowFileChooser
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo W/dalvikvm: VFY: unable to resolve virtual method 173: Landroid/webkit/WebChromeClient$FileChooserParams;.createIntent ()Landroid/content/Intent;
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo D/dalvikvm: VFY: replacing opcode 0x6e at 0x0000
    11-15 18:09:21.763 5735-5735/com.alameenazad.primo D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown
    11-15 18:09:21.783 5735-5735/com.alameenazad.primo D/PluginManager: init()
    11-15 18:09:21.783 5735-5735/com.alameenazad.primo D/CordovaWebViewImpl: >>> loadUrl(http://192.168.11.20:8080)
    11-15 18:09:21.823 5735-5735/com.alameenazad.primo D/CordovaActivity: Started the activity.
    11-15 18:09:21.823 5735-5735/com.alameenazad.primo D/CordovaActivity: Resumed the activity.
    11-15 18:09:21.943 5735-5735/com.alameenazad.primo D/EGL_emulation: eglCreateContext: 0xb96f5a20: maj 3 min 0 rcv 3
    11-15 18:09:21.963 5735-5735/com.alameenazad.primo D/EGL_emulation: eglMakeCurrent: 0xb96f5a20: ver 3 0
    11-15 18:09:21.963 5735-5735/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
    11-15 18:09:21.963 5735-5735/com.alameenazad.primo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
    11-15 18:09:21.963 5735-5735/com.alameenazad.primo D/OpenGLRenderer: Enabling debug mode 0
    11-15 18:09:21.973 5735-5735/com.alameenazad.primo W/AwContents: nativeOnDraw failed; clearing to background color.
    11-15 18:09:22.193 5735-5735/com.alameenazad.primo W/AwContents: nativeOnDraw failed; clearing to background color.
    11-15 18:09:22.233 5735-5735/com.alameenazad.primo D/CordovaWebViewImpl: onPageDidNavigate(http://192.168.11.20:8080/)
    11-15 18:09:22.283 5735-5735/com.alameenazad.primo I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
    11-15 18:09:22.383 5735-5735/com.alameenazad.primo I/chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
    11-15 18:09:22.413 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.463 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.473 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.483 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.483 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.483 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.493 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.493 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 589824
    11-15 18:09:22.493 5735-5735/com.alameenazad.primo D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 98304
    11-15 18:09:22.543 5735-5735/com.alameenazad.primo D/SystemWebChromeClient: http://192.168.11.20:8080/: Line 10 : Viewport argument key "viewport-fit" not recognized and ignored.
    11-15 18:09:22.543 5735-5735/com.alameenazad.primo I/chromium: [INFO:CONSOLE(10)] "Viewport argument key "viewport-fit" not recognized and ignored.", source: http://192.168.11.20:8080/ (10)
    11-15 18:09:22.543 5735-5735/com.alameenazad.primo D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
    11-15 18:09:23.433 5735-5735/com.alameenazad.primo D/SystemWebChromeClient: webpack-internal:///./node_modules/webpack/hot/log.js: Line 24 : [HMR] Waiting for update signal from WDS...
    11-15 18:09:23.433 5735-5735/com.alameenazad.primo I/chromium: [INFO:CONSOLE(24)] "[HMR] Waiting for update signal from WDS...", source: webpack-internal:///./node_modules/webpack/hot/log.js (24)
    11-15 18:09:23.433 5735-5735/com.alameenazad.primo D/SystemWebChromeClient: http://192.168.11.20:8080/: Line 44 : Uncaught SyntaxError: Use of const in strict mode.
    11-15 18:09:23.433 5735-5735/com.alameenazad.primo I/chromium: [INFO:CONSOLE(44)] "Uncaught SyntaxError: Use of const in strict mode.", source: http://192.168.11.20:8080/ (44)
    11-15 18:09:23.433 5735-5735/com.alameenazad.primo D/CordovaWebViewImpl: onPageFinished(http://192.168.11.20:8080/)
    11-15 18:09:23.493 5735-5735/com.alameenazad.primo D/dalvikvm: GC_FOR_ALLOC freed 173K, 7% free 3508K/3736K, paused 4ms, total 4ms
    11-15 18:09:23.503 5735-5735/com.alameenazad.primo D/SystemWebChromeClient: webpack-internal:///./node_modules/webpack-dev-server/client/index.js?http://192.168.11.20:8080: Line 48 : [WDS] Hot Module Replacement enabled.
    11-15 18:09:23.503 5735-5735/com.alameenazad.primo I/chromium: [INFO:CONSOLE(48)] "[WDS] Hot Module Replacement enabled.", source: webpack-internal:///./node_modules/webpack-dev-server/client/index.js?http://192.168.11.20:8080 (48)
    11-15 18:09:23.503 5735-5735/com.alameenazad.primo D/SystemWebChromeClient: webpack-internal:///./node_modules/webpack-dev-server/client/index.js?http://192.168.11.20:8080: Line 52 : [WDS] Live Reloading enabled.
    11-15 18:09:23.503 5735-5735/com.alameenazad.primo I/chromium: [INFO:CONSOLE(52)] "[WDS] Live Reloading enabled.", source: webpack-internal:///./node_modules/webpack-dev-server/client/index.js?http://192.168.11.20:8080 (52)
    
    


  • @Alameen

    Can you debug your cordova app with chrome dev tools while running on the tablet? And post any errors in the chrome console?
    chrome://inspect#devices.

    https://developers.google.com/web/tools/chrome-devtools/remote-debugging

    I had this problem too with blank screens on certain android devices.
    Therefore could you check if the SPA version runs in IE11( does it work or does it also show a blank screen)?



  • I tried remote device inspect and saw nothing on the console.

    SPA on IE though shows a white screen too.

    here is what inspect on IE shows.

    24636904-8eb1-489f-97b5-ac6adca649fa-image.png



  • its pointing to this line :

    eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.promise */ \"./node_modules/core-js/modules/es.promise.js\");\n/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.replace */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _quasar_extras_roboto_font_roboto_font_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @quasar/extras/roboto-font/roboto-font.css */ \"./node_modules/@quasar/extras/roboto-font/roboto-font.css\");\n/* harmony import */ var _quasar_extras_roboto_font_roboto_font_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_quasar_extras_roboto_font_roboto_font_css__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _quasar_extras_mdi_v3_mdi_v3_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @quasar/extras/mdi-v3/mdi-v3.css */ \"./node_modules/@quasar/extras/mdi-v3/mdi-v3.css\");\n/* harmony import */ var _quasar_extras_mdi_v3_mdi_v3_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_quasar_extras_mdi_v3_mdi_v3_css__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var quasar_dist_quasar_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! quasar/dist/quasar.css */ \"./node_modules/quasar/dist/quasar.css\");\n/* harmony import */ var quasar_dist_quasar_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(quasar_dist_quasar_css__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var src_css_app_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/css/app.css */ \"./src/css/app.css\");\n/* harmony import */ var src_css_app_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(src_css_app_css__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app.js */ \"./.quasar/app.js\");\n/* harmony import */ var boot_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! boot/i18n */ \"./src/boot/i18n.js\");\n/* harmony import */ var boot_axios__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! boot/axios */ \"./src/boot/axios.js\");\n\n\n\n/**\n * THIS FILE IS GENERATED AUTOMATICALLY.\n * DO NOT EDIT.\n *\n * You are probably looking on adding startup/initialization code.\n * Use \"quasar new boot <name>\" and add it there.\n * One boot file per concern. Then reference the file(s) in quasar.conf.js > boot:\n * boot: ['file', ...] // do not add \".js\" extension to it.\n *\n * Boot files are your \"main.js\"\n **/\n\n // We load Quasar stylesheet file\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_6__[\"default\"].config.devtools = true;\nvue__WEBPACK_IMPORTED_MODULE_6__[\"default\"].config.productionTip = false;\nconsole.info('[Quasar] Running SPA.');\nconst publicPath = ``;\n\nasync function start() {\n  const {\n    app,\n    store,\n    router\n  } = await Object(_app_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n  let hasRedirected = false;\n\n  const redirect = url => {\n    hasRedirected = true;\n    const normalized = Object(url) === url ? router.resolve(url).route.fullPath : url;\n    window.location.href = normalized;\n  };\n\n  const urlPath = window.location.href.replace(window.location.origin, '');\n  const bootFiles = [boot_i18n__WEBPACK_IMPORTED_MODULE_8__[\"default\"], boot_axios__WEBPACK_IMPORTED_MODULE_9__[\"default\"]];\n\n  for (let i = 0; hasRedirected === false && i < bootFiles.length; i++) {\n    if (typeof bootFiles[i] !== 'function') {\n      continue;\n    }\n\n    try {\n      await bootFiles[i]({\n        app,\n        router,\n        store,\n        Vue: vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n        ssrContext: null,\n        redirect,\n        urlPath,\n        publicPath\n      });\n    } catch (err) {\n      if (err && err.url) {\n        window.location.href = err.url;\n        return;\n      }\n\n      console.error('[Quasar] boot error:', err);\n      return;\n    }\n  }\n\n  if (hasRedirected === true) {\n    return;\n  }\n\n  new vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"](app);\n}\n\nstart();\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi8ucXVhc2FyL2NsaWVudC1lbnRyeS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uLy5xdWFzYXIvY2xpZW50LWVudHJ5LmpzPzJmMzkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUSElTIEZJTEUgSVMgR0VORVJBVEVEIEFVVE9NQVRJQ0FMTFkuXG4gKiBETyBOT1QgRURJVC5cbiAqXG4gKiBZb3UgYXJlIHByb2JhYmx5IGxvb2tpbmcgb24gYWRkaW5nIHN0YXJ0dXAvaW5pdGlhbGl6YXRpb24gY29kZS5cbiAqIFVzZSBcInF1YXNhciBuZXcgYm9vdCA8bmFtZT5cIiBhbmQgYWRkIGl0IHRoZXJlLlxuICogT25lIGJvb3QgZmlsZSBwZXIgY29uY2Vybi4gVGhlbiByZWZlcmVuY2UgdGhlIGZpbGUocykgaW4gcXVhc2FyLmNvbmYuanMgPiBib290OlxuICogYm9vdDogWydmaWxlJywgLi4uXSAvLyBkbyBub3QgYWRkIFwiLmpzXCIgZXh0ZW5zaW9uIHRvIGl0LlxuICpcbiAqIEJvb3QgZmlsZXMgYXJlIHlvdXIgXCJtYWluLmpzXCJcbiAqKi9cblxuXG5cbmltcG9ydCAnQHF1YXNhci9leHRyYXMvcm9ib3RvLWZvbnQvcm9ib3RvLWZvbnQuY3NzJ1xuXG5pbXBvcnQgJ0BxdWFzYXIvZXh0cmFzL21kaS12My9tZGktdjMuY3NzJ1xuXG5cblxuXG4vLyBXZSBsb2FkIFF1YXNhciBzdHlsZXNoZWV0IGZpbGVcbmltcG9ydCAncXVhc2FyL2Rpc3QvcXVhc2FyLmNzcydcblxuXG5cblxuaW1wb3J0IC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E7QUFNQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBS0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVJBO0FBVUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBU0E7QUFTQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./.quasar/client-entry.js\n");
    


  • @dobbel I changed the supported browser in package.json and now it works. Thank you for the help!



  • @Alameen

    Great work!


Log in to reply