Slow application start on Android


#1

Hello,

I’m building an Ionic application for both Android and IOS. On Android, I’m experiencing a slow start (11-16 seconds) from the launch of the application until the platform.ready(). Before posting here I searched in the form and online and did the following:

  1. added import {enableProdMode} from "@angular/core"; enableProdMode(); to the main.ts file;

  2. Tested building with --prod and --release from both local building and building using ionic.io cloud;

  3. Deleted the plugin folder, recreated it with cordova prepare command, removed and added android platform and built again;

So far nothing worked.

On Android I’m testing it using an Asus Zenfone MAx Plus with Android 7.0. No problems in IOS.

This is the output of ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 7.0.0 browser 5.0.1 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 2.0.0 
    Node       : v8.9.1
    npm        : 6.3.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 10.0 Build version 10A255 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro