我的应用反应非常奇怪。我真的没有任何工作人员在服务器上运行或调用巨大的数组数据。
但是我的应用程序在启动时运行大约500MB到第一个屏幕页面,它总是500MB甚至没有减少,当我故意按HOME按钮去电话HOME屏幕,然后再次回到我的应用程序时,内存现在减少了到16MB。怎么可能呢?
离子信息
Cordova CLI: 6.5.0
Ionic Framework Version: 1.3.5
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS High Sierra
Node Version: v6.11.4
Xcode version: Xcode 9.2 Build version 9C40b
插件
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-apprate 1.3.0 "AppRate"
cordova-plugin-badge 0.7.4 "Badges"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.5 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-geolocation 2.4.2 "Geolocation"
cordova-plugin-globalization 1.0.9 "Globalization"
cordova-plugin-google-analytics 0.8.1 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 1.7.0 "InAppBrowser"
cordova-plugin-ionic-webview 1.1.19 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 1.3.2 "Network Information"
cordova-plugin-splashscreen 4.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2-dev "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.1.7 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.10.2 "PushPlugin"
答案 0 :(得分:0)
好的家伙,事实证明是Splash屏幕问题。 我只是将启动画面格式从“Png”更改为“psd”,启动内存大大减少了