How do I export my Ionic + Angular app to Android 7.1? I have a custom Cap Plugin too!

I was searching far and wide for this, and I hope that the only problem here are my googling skills.

I have 2 physical devices:

  1. A Redmi Note 8 with the latest (so far) Android Version,
  2. A Device that has Android 7.1.1 with WebView 52 inside it.

I also developed a custom Capacitor plugin in Java.

I ran my app through the Android Studio runner onto my Redmi Note 8 device (connected by a USB to Type-C cable), and both the app and the plugin ran well.

I tried the same with my 2nd device (connected by a USB to Micro USB cable), and I got the white screen. Why didn’t the code compile properly to accomodate for the lesser version?

I suspect that my ES6 modules weren’t compiled for the ES5 somewhere along the way, but I wasn’t able to find anything!

I am at the point where I’m considering switching to NativeScript because a close associate of my showed me that he was able to use NativeScript both on his Android (w/ latest version) and a second Android device that has Android 6.1.

I hope that someone helps me with this, or just points me at the right direction… Thanks!

My hope is that I don’t need to rewrite my app from scratch in an older version, but rather that the compiler somehow does it for me…

Capacitor only supports WebView 60+, it can technically go as low as 55, but not to 52.

The WebView component should be updatable, in Android 7.1.1 should be done updating the Chrome app.
If Chrome app is up to date, then maybe the vendor didn’t make the WebView updatable for your device, sadly it won’t work.

1 Like

Yikes, I guess NativeScript is my only hope. But their component library is a bit daunting, I got used way too much to the simplicity of Ionic…

Anyhoot, thanks @julio-ionic!