簡體   English   中英

Ionic 2-閃屏后,Android版本的構建卡在白屏上

[英]Ionic 2 - Android release build stuck on white screen after splash screen

我幾周前發布了一個與此有關的問題,但沒有得到回應。 因此,我再次發布了更清晰的問題/疑問。

我的問題:

1.)我跑:

    $ ionic cordova build android --release --prod

2.)然后我簽字。

3)然后我上傳到谷歌播放。

4。)然后我從谷歌播放下載它,應用程序點擊啟動畫面,然后在較低版本的android(到目前為止,在6.0.0版以下的所有版本)關閉啟動畫面后卡在白屏上。

為了驗證問題是我的應用程序,我使用“ super”模板通過ionic cli創建了一個新應用程序。 然后,我以完全相同的方式構建,簽名並上傳了它。 我從Google Play下載了它,而且效果很好。 我進入了應用程序,包括低於6.0.0的版本。

所以,我的問題是

  • 如果僅在發行/生產版本中發生問題,我如何查看導致問題的原因?

  • 有沒有一種調試方法?

  • 是否存在已知的功能(管道,蒙版,模塊等),這些功能無法在較舊版本的android中找到的舊版瀏覽器中起作用,可能導致此問題?

項目信息:

@ionic/cli-plugin-cordova       : 1.6.1
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

全局軟件包:

Cordova CLI : 7.0.1 

本地套餐:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3 ios 4.4.0
Ionic Framework    : ionic-angular 3.6.0

系統:

Node       : v6.11.0
OS         : macOS Sierra
Xcode      : Xcode 8.3.3 Build version 8E3004b 
ios-deploy : 1.9.1 
npm        : 3.10.10 

配置文件:

<preference name="android-minSdkVersion" value="16" /> // This is the same as the default value generated by ionic-cli

// I use the hide() function in platform.ready() of my app.component to hide the splash screen. Did the same in the test generated app. Shouldnt be the issue.
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="500" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="30000" /> // Arbitrary time. platform.ready() should be called way before this. 
<preference name="loadUrlTimeoutValue" value="700000" /> // Added this because it was recommended for larger app sizes..?

我的插件(我發現其他人也有由於模塊導入引起的類似問題..?):

<plugin name="cordova-plugin-console" spec="^1.0.5" />
<plugin name="cordova-plugin-contacts" spec="^2.3.1" />
<plugin name="cordova-plugin-device" spec="^1.1.4" />
<plugin name="cordova-plugin-fingerprint-aio" spec="^1.2.1" />
<plugin name="cordova-plugin-geolocation" spec="^2.4.3">
    <variable name="GEOLOCATION_USAGE_DESCRIPTION" value=" " />
</plugin>
<plugin name="cordova-plugin-googlemaps" spec="^1.4.3">
    <variable name="API_KEY_FOR_ANDROID" value="AIzaSyBbYqJI-CZfV8_Zmj3laEGMbHsQenYo3V4" />
    <variable name="API_KEY_FOR_IOS" value="AIzaSyBbYqJI-CZfV8_Zmj3laEGMbHsQenYo3V4" />
    <variable name="NSLOCATIONWHENINUSEUSAGEDESCRIPTION" value="Show your location on the map" />
    <variable name="NSLOCATIONALWAYSUSAGEDESCRIPTION" value="Trace your location on the map" />
</plugin>
<plugin name="cordova-plugin-http" spec="^1.2.0" />
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
<plugin name="cordova-plugin-nativegeocoder" spec="^1.0.2" />
<plugin name="cordova-plugin-nativestorage" spec="^2.2.2" />
<plugin name="cordova-plugin-screen-orientation" spec="^1.4.3" />
<plugin name="cordova-plugin-secure-storage" spec="^2.6.8" />
<plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
<plugin name="cordova-plugin-statusbar" spec="^2.2.2" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.1" />
<plugin name="cordova-sqlite-storage" spec="^2.0.4" />
<plugin name="ionic-plugin-deploy" spec="^0.6.7" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" spec="^3.2.2" />

我最終刪除了android和iOS平台,重新安裝它們,然后再次安裝人行橫道。 不能100%確定是不是人行橫道將其修復了,這可能是我做了一些小的代碼更改。

通常,當加載屏幕無限時,這是代碼的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM