离子2:飞溅屏幕期间发生了什么



i构建一个离子2应用程序,我想知道在应用程序飞溅屏幕期间会发生什么?

即使在这个飞溅屏幕期间,您能否建议我有效分析工具来分析我的应用程序的所有性能?

我的应用程序在生产模式下,在6秒内初始化(Honor 6x Pro(。我认为太多了,您怎么看?

感谢您的帮助!

我的config.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.myapp722890" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>MyApp</name>
  <description>Mobile version of MyApp</description>
  <author email="my mail" href="https://toto/">toto</author>
  <content src="index.html"/>
  <access origin="*"/>
  <allow-navigation href="http://ionic.local/*"/>
  <allow-navigation href="http://my-ip:8100"/>
  <allow-navigation href="*"/>
  <allow-intent href="http://*/*"/>
  <allow-intent href="https://*/*"/>
  <allow-intent href="tel:*"/>
  <allow-intent href="sms:*"/>
  <allow-intent href="mailto:*"/>
  <allow-intent href="geo:*"/>
  <platform name="android">
    <allow-intent href="market:*"/>
    <icon src="resourcesandroidicondrawable-ldpi-icon.png" density="ldpi"/>
    <icon src="resourcesandroidicondrawable-mdpi-icon.png" density="mdpi"/>
    <icon src="resourcesandroidicondrawable-hdpi-icon.png" density="hdpi"/>
    <icon src="resourcesandroidicondrawable-xhdpi-icon.png" density="xhdpi"/>
    <icon src="resourcesandroidicondrawable-xxhdpi-icon.png" density="xxhdpi"/>
    <icon src="resourcesandroidicondrawable-xxxhdpi-icon.png" density="xxxhdpi"/>
    <splash src="resourcesandroidsplashdrawable-land-ldpi-screen.png" density="land-ldpi"/>
    <splash src="resourcesandroidsplashdrawable-land-mdpi-screen.png" density="land-mdpi"/>
    <splash src="resourcesandroidsplashdrawable-land-hdpi-screen.png" density="land-hdpi"/>
    <splash src="resourcesandroidsplashdrawable-land-xhdpi-screen.png" density="land-xhdpi"/>
    <splash src="resourcesandroidsplashdrawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
    <splash src="resourcesandroidsplashdrawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
    <splash src="resourcesandroidsplashdrawable-port-ldpi-screen.png" density="port-ldpi"/>
    <splash src="resourcesandroidsplashdrawable-port-mdpi-screen.png" density="port-mdpi"/>
    <splash src="resourcesandroidsplashdrawable-port-hdpi-screen.png" density="port-hdpi"/>
    <splash src="resourcesandroidsplashdrawable-port-xhdpi-screen.png" density="port-xhdpi"/>
    <splash src="resourcesandroidsplashdrawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
    <splash src="resourcesandroidsplashdrawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
  </platform>
  <platform name="ios">
    <allow-intent href="itms:*"/>
    <allow-intent href="itms-apps:*"/>
  </platform>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <preference name="loadUrlTimeoutValue" value="60000" />
  <preference name="SplashMaintainAspectRatio" value="true"/>
  <preference name="FadeSplashScreenDuration" value="300"/>
  <preference name="SplashShowOnlyFirstTime" value="true"/>
  <preference name="SplashScreen" value="screen"/>
  <preference name="SplashScreenDelay" value="500"/>
  <preference name="AutoHideSplashScreen" value="false"/>
  <preference name="FadeSplashScreen" value="false"/>
  <feature name="StatusBar">
    <param name="ios-package" onload="true" value="CDVStatusBar"/>
  </feature>
  <plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
  <plugin name="cordova-plugin-whitelist" spec="1.3.1"/>
  <plugin name="cordova-plugin-console" spec="1.0.5"/>
  <plugin name="cordova-plugin-statusbar" spec="2.2.1"/>
  <plugin name="cordova-plugin-device" spec="1.1.4"/>
  <plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
  <plugin name="cordova-sqlite-storage" spec="~2.0.2"/>
  <plugin name="cordova-base64-to-gallery" spec="~4.1.2"/>
  <plugin name="mx.ferreyra.callnumber" spec="~0.0.2"/>
  <icon src="resourcesandroidicondrawable-xhdpi-icon.png"/>
</widget>

我的平台。dready功能:

platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide(); 
    });

使用 ionic build android --prod构建构建功能。它大大减少了应用程序的初始化时间。

相关内容

  • 没有找到相关文章

最新更新