1

for android 4.2.2, ionic app shows white screen. I want to know if the device had this version of android, app would show a message and would notify that this version of android is not supported. is it possible?

M.Hajavi
  • 277
  • 4
  • 17

1 Answers1

2

I founded this solution:

  let platformVersion = platform.versions();
  if (platformVersion.android) {
    let androidV = platformVersion.android.num;
    console.log(androidV);
    if (androidV < 4.4) {
      let alert = this.alertCtrl.create({
        message:  'Please update android ...'
      });
      alert.present();

      // or push a single page for this error:
      //this.nav.setRoot(ErrorPage);
    }
  }

for show this message in android device with version older than 4.4 we must be install this:

cordova plugin add cordova-plugin-crosswalk-webview 

for more information visit this link:

https://crosswalk-project.org/documentation/cordova.html

M.Hajavi
  • 277
  • 4
  • 17