Hi everybody.
I have a problem with my app. When I run:
ionic cap run ios -l
my app show a whitescreen after splashscreen, but if I run:
ionic cap run ios -l -host=XXX.XXX.XXX.XXX
my app work. Alsoo if I run the app with XCode if I run the app with emulator in Iphone 8,9,10,11,12,13 show a whitescreen after splashscreen, but if I run the app with emulator in IPad it works.
Finally If I work the app with XCode in my device (iPhone 7) also works…
Ionic:
Ionic CLI : 6.19.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.14
@angular-devkit/build-angular : 13.3.1
@angular-devkit/schematics : 13.3.1
@angular/cli : 13.3.1
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.4.3
@capacitor/android : 3.4.3
@capacitor/core : 3.4.3
@capacitor/ios : 3.4.3
Utility:
cordova-res : not installed globally
native-run : 1.5.0
System:
NodeJS : v16.14.0 (/usr/local/bin/node)
npm : 8.5.4
OS : macOS Monterey
SplashScreen: {
launchShowDuration: 3000,
launchAutoHide: false,
backgroundColor: "#ffffffff",
androidSplashResourceName: "splash",
androidScaleType: "CENTER_CROP",
showSpinner: true,
androidSpinnerStyle: "horizontal",
iosSpinnerStyle: "small",
spinnerColor: "#999999",
splashFullScreen: true,
splashImmersive: true,
layoutName: "launch_screen",
useDialog: false,
},
export class AppComponent implements OnInit {
constructor(private platform: Platform) {}
ngOnInit() {
this.initializeApp();
}
initializeApp = () =>
this.platform.ready().then(async () => {
StatusBar.setStyle({ style: Style.Default });
await SplashScreen.hide();
});
}