ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.92k stars 13.51k forks source link

Very long startup time after first installation #13405

Closed sansan88 closed 6 years ago

sansan88 commented 6 years ago

Ionic version: (check one with "x") [ ] 2.x [x ] 3.x [ ] 4.x

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request

Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior: very long startup time (90!!!! seconds) after first installation of the app (android&ios). after this long process, the app works normally. this just appears after first install or update of the app.

Expected behavior: 2-3 seconds startup time.

Steps to reproduce: Using latest ionic 3.9.2

Related code:

  "author": "Sandro Scalco",
  "version": "1.12.1",
  "description": "unihockey.club | Vereinsmanagement",
  "homepage": "http://unihockey.club/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "5.0.0",
    "@angular/core": "5.0.0",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@ionic-native/calendar": "4.3.3",
    "@ionic-native/camera": "4.3.3",
    "@ionic-native/contacts": "4.3.3",
    "@ionic-native/core": "4.3.3",
    "@ionic-native/email-composer": "4.3.3",
    "@ionic-native/facebook": "4.3.3",
    "@ionic-native/file": "4.3.3",
    "@ionic-native/in-app-browser": "4.3.3",
    "@ionic-native/onesignal": "4.3.3",
    "@ionic-native/paypal": "4.3.3",
    "@ionic-native/splash-screen": "4.3.3",
    "@ionic-native/status-bar": "4.3.3",
    "@ionic-native/youtube-video-player": "4.3.3",
    "@ionic/cloud-angular": "0.12.0",
    "@ionic/pro": "1.0.14",
    "@ngx-translate/core": "^8.0.0",
    "@ngx-translate/http-loader": "^0.1.0",
    "@types/papaparse": "^4.1.30",
    "angular2-elastic": "^0.13.0",
    "com.paypal.cordova.mobilesdk": "~3.5.0",
    "cordova-browser": "~5.0.1",
    "cordova-plugin-add-swift-support": "^1.6.1",
    "cordova-plugin-camera": "~2.4.1",
    "cordova-plugin-compat": "~1.1.0",
    "cordova-plugin-device": "1.1.4",
    "cordova-plugin-email": "~1.2.6",
    "cordova-plugin-facebook4": "~1.7.4",
    "cordova-plugin-file": "^4.3.3",
    "cordova-plugin-inappbrowser": "~1.6.1",
    "cordova-plugin-ionic": "^2.0.1",
    "cordova-plugin-ionic-webview": "^1.1.11",
    "cordova-plugin-splashscreen": "~4.0.1",
    "cordova-plugin-statusbar": "^2.2.3",
    "cordova-plugin-whitelist": "1.3.1",
    "cordova-plugin-youtube-video-player": "^1.0.6",
    "firebase": "^4.6.2",
    "ionic-angular": "^3.9.2",
    "ionic-plugin-keyboard": "~2.2.1",
    "ionicons": "~3.0.0",
    "json2csv": "^3.7.3",
    "ng-elastic": "^1.0.0-beta.3",
    "onesignal-cordova-plugin": "2.1.0",
    "papaparse": "^4.3.6",
    "reflect-metadata": "^0.1.10",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18",
    "cordova-ios": "~4.5.3"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.0",
    "ionic": "3.18.0",
    "typescript": "2.4.2"
  },

  "cordova": {
    "platforms": [
      "browser",
      "ios",
      "android"
    ],
    "plugins": {
      "com.paypal.cordova.mobilesdk": {},
      "cordova-plugin-camera": {
        "CAMERA_USAGE_DESCRIPTION": "App would like to access the camera",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": "App would like to access the library."
      },
      "cordova-plugin-compat": {},
      "cordova-plugin-device": {},
      "cordova-plugin-email": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "XXXXX",
        "APP_NAME": "unihockey.club"
      },
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-whitelist": {},
      "cordova-sqlite-storage": {},
      "ionic-plugin-keyboard": {},
      "cordova-plugin-youtube-video-player": {},
      "cordova-plugin-file": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic": {
        "APP_ID": "XXXX",
        "CHANNEL_NAME": "Production",
        "UPDATE_METHOD": "background",
        "UPDATE_API": "https://api.ionicjs.com",
        "MAX_STORE": "2"
      },
      "onesignal-cordova-plugin": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-add-swift-support": {}
    }
  }
}

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

``cli packages: (C:\Users\sandr\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v6.11.3
npm  : 3.10.10
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro`

insert the output from ionic info here

janpio commented 6 years ago

What command did you use to build your app? From where are you installing the app - stores? beta distribution service? What kind of devices are you testing with?

kensodemann commented 6 years ago

Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having? Thanks for using Ionic!

sansan88 commented 6 years ago

I'm using Ionic Pro to build the app as production apps via App Store and Google Play Store. tested on iPhone 8 IOS 11 and Samsung Galaxy A3 Android. The Repo is private, I can give you read Access if you provide me your github username.

sansan88 commented 6 years ago

Android still an issue.. you can download the app in the android play store: https://play.google.com/store/apps/details?id=club.unihockey.app iOS seems to be ok with typescript 2.6.1 and updated webview

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.