Ionic app consumes lots of memory when launches


#1

Hello,

Even if I launch my app only with splash screen (of course I am using some native plugins also), commenting everything in app.component.ts, it consumes around 139 MB to 180 MB memory.
See below - ShahHospital app details.

.

Is this because of Native Plugins I am loading?

Please help me.


#2

Hi,

Can you post the native plugin you use ? Have you build with --prod ?


#3

I am using following plugins…

com-sarriaroman-photoviewer 1.1.10 "PhotoViewer"
com.xmartlabs.cordova.market 1.1 "Market"
cordova-opentok-android-permissions 1.0.0 "Cordova Opentok/WebRTC Android Permissions"
cordova-plugin-add-swift-support 1.6.2 "AddSwiftSupport"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-ble-central 1.1.4 "BLE"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-health 0.10.1 "Cordova Health"
cordova-plugin-hkvideoplayer 1.0.12 "hkvideoplayer"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-media 3.0.1 "Media"
cordova-plugin-native-ringtones 0.2.5 "NativeRingtones"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-screen-orientation 2.0.1 "Screen Orientation"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-stripe 1.5.3 "cordova-plugin-stripe"
cordova-plugin-vibration 2.1.5 "Vibration"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
cordova-wheel-selector-plugin 1.0.0 "Cordova Wheel Selector Plugin"
cordova.plugins.diagnostic 3.6.6 "Diagnostic"
de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.10.5 “PushPlugin”

Yes I did --prod


#4

I think you have a lots of plugin. So it’s normal at startup you have 150Mo, for me.
Just a question why you have cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine" and also cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine" ?


#5

Thanks for your response.

Actually crosswalk for android and WKWebView for iOS platform


#6

I didn’t know that crosswalk was for Android and WK for iOS thanks :slight_smile: