如何在 ionic v4 中禁用启动画面微调器?
How to disable Splash screen spinner in ionic v4?
我知道这是一个重复的问题,我关注 link 但它对我不起作用,
这是我的 config.xml 代码:
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="AIzaSyB1aYGNVG30GtCQ56jlgBApneVdVRfAfy4" />
<preference name="GOOGLE_MAPS_IOS_API_KEY" value="AIzaSyB1aYGNVG30GtCQ56jlgBApneVdVRfAfy4" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="30000" />
<preference name="FadeSplashScreenDuration" value="1000" />
<preference name="SplashScreen" value="screen" />
<preference name="ShowSplashScreen" value="true" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="FadeSplashScreen" value="true" />
和 app.component.ts 代码:
initializeApp() {
this.checkConnection.checkConnection();
this.platform.ready().then(() => {
setTimeout(() => {
this.splashScreen.hide();
}, 1000);
this.statusBar.styleDefault();
this.fcmService.tokenSave();
this.fcmService.notification();
this.StorageService.get("Auth_Token").then((data)=>{
if (SingletonService.Auth_Token == null)
this.StorageService.getAuth_Token();
if(data && data != null && data != undefined) {
SingletonService.Auth_Token = data;
this.authenticationService.authenticationState.subscribe(state => {
console.log('state',state);
if (state != true) {
this.route.navigate(['main-page']);
}
});
}
}).catch(err => {
console.log(err);
// this.route.navigate(['main-page']);
});
});
}
我搜索了很多,我问了我的朋友,但我无法解决我的问题,
请帮助我,谢谢。
我们通常借助以下代码隐藏启动画面微调器
<preference name="ShowSplashScreenSpinner" value="false" />
它适用于 Android 和 iOS。
您必须确保您的项目更改集必须删除 www
文件夹并删除 android
中的构建文件夹
我知道这是一个重复的问题,我关注
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="AIzaSyB1aYGNVG30GtCQ56jlgBApneVdVRfAfy4" />
<preference name="GOOGLE_MAPS_IOS_API_KEY" value="AIzaSyB1aYGNVG30GtCQ56jlgBApneVdVRfAfy4" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="30000" />
<preference name="FadeSplashScreenDuration" value="1000" />
<preference name="SplashScreen" value="screen" />
<preference name="ShowSplashScreen" value="true" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="FadeSplashScreen" value="true" />
和 app.component.ts 代码:
initializeApp() {
this.checkConnection.checkConnection();
this.platform.ready().then(() => {
setTimeout(() => {
this.splashScreen.hide();
}, 1000);
this.statusBar.styleDefault();
this.fcmService.tokenSave();
this.fcmService.notification();
this.StorageService.get("Auth_Token").then((data)=>{
if (SingletonService.Auth_Token == null)
this.StorageService.getAuth_Token();
if(data && data != null && data != undefined) {
SingletonService.Auth_Token = data;
this.authenticationService.authenticationState.subscribe(state => {
console.log('state',state);
if (state != true) {
this.route.navigate(['main-page']);
}
});
}
}).catch(err => {
console.log(err);
// this.route.navigate(['main-page']);
});
});
}
我搜索了很多,我问了我的朋友,但我无法解决我的问题, 请帮助我,谢谢。
我们通常借助以下代码隐藏启动画面微调器
<preference name="ShowSplashScreenSpinner" value="false" />
它适用于 Android 和 iOS。
您必须确保您的项目更改集必须删除 www
文件夹并删除 android