离子应用程序从应用程序商店拒绝,因为它不会加载

问题描述 投票:1回答:1

我最近将我的应用程序提交到Apple应用程序商店,但它被拒绝了..

准则2.1 - 性能 - 应用程序完整性

我们在使用Wi-Fi运行iOS 11.4.1的iPhone上查看了应用中的一个或多个错误。

发布后,活动指示器无限期旋转

我已经在多个iPhone上测试了应用程序,从6到X,它运行正常。通过启动画面加载可能需要4-5秒,但这不应该是拒绝的原因吗?

我最近更新了我的cordova-plugin-ionic-webview,我注意到发射速度变慢了?我的config.xml说我在v ^1.1.16但我的package.json说我在^2.0.2,不知道这是否是一个问题?现在还有一个v 2.1.3 ..

但正如我所说,我不知道问题是什么,因为它在我的iPhone上工作正常..

我的config.xml的重要部分看起来像这样..不确定它是否显示任何可能导致答案的东西:

<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="30000" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="loadUrlTimeoutValue" value="60000" />
<preference name="target-device" value="handset" />

<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    ...icons/splashscreens
</platform>

<plugin name="cordova-plugin-device" spec="^2.0.1" />
<plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^1.1.16" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" />
<plugin name="cordova-sqlite-storage" spec="^2.2.1" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<allow-navigation href="http://192.168.9.77:8100" />
<allow-navigation href="http://192.168.1.27:8100" />
<allow-navigation href="http://192.168.1.5:8100" />
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
    <string>To connect you to your local university!</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
    <string>To let you upload images!</string>
</edit-config>
<plugin name="cordova-plugin-geolocation" spec="^4.11.0">
    <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="To connect you to your local university!" />
</plugin>
<plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
<plugin name="cordova-plugin-firebase" spec="1.0.5" />
<plugin name="cordova-plugin-camera" spec="^4.0.3" />
<plugin name="cordova-plugin-request-location-accuracy" spec="^2.2.3" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.1.2" />
<plugin name="cordova.plugins.diagnostic" spec="^4.0.8" />
<plugin name="cordova-plugin-google-analytics" spec="^1.8.6">
    <variable name="GMS_VERSION" value="16.0.3" />
</plugin>
<engine name="browser" spec="^5.0.4" />
<engine name="android" spec="^7.0.0" />
<engine name="ios" spec="^4.5.5" />

因为我的<preference name="AutoHideSplashScreen" value="false" />是假的,在我的app.component.ts文件中,我有以下代码行隐藏了启动画面:

constructor(
public zone: NgZone,
private afAuth: AngularFireAuth,
public splashScreen: SplashScreen) {
this.afAuth.auth.onAuthStateChanged((user) => {
      this.zone.run(() => {
        if (user) {
          this.rootPage = HomePage
          this.splashScreen.hide();
        } else {
          this.rootPage = LoginPage
          this.splashScreen.hide();
          console.log("Not logged in")
        }
      });
    });
  }

这里有什么线索为什么这可能不起作用?谢谢!

cordova ionic-framework ionic2 ionic3 app-store
1个回答
0
投票

“发布后,活动指标无限期旋转”

如果你使用离子加载器或旋转器,然后正确处理它

恩。 (不是完整的代码只是例子)

this.spinnerDialog.show();

http.req().then((data)=>{
   this.spinnerDialog.hide();
}).err((error)=>{
   this.spinnerDialog.hide();
})

你必须正确处理微调器,装载器或活动指示器

© www.soinside.com 2019 - 2024. All rights reserved.