我知道这是一个重复的问题,我点击了documentation链接,但对我来说不起作用, 这是我的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']);
});
});
}
我搜索了很多东西,并向我的朋友问,但我无法解决我的问题, 请帮助我,谢谢。
答案 0 :(得分:1)
我们通常在以下代码的帮助下隐藏启动画面微调器
<preference name="ShowSplashScreenSpinner" value="false" />
,并且适用于Android和iOS。
答案 1 :(得分:0)
您必须确保在项目上进行的更改设置必须删除www
文件夹并删除android中的构建文件夹