diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 2462f1841..badb8dc75 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -196,10 +196,15 @@ export class AppComponent implements OnInit, AfterViewInit { */ ngAfterViewInit(): void { if (!this.outlet) { + this.logger.debug('Aftew view init: no outlet found'); + return; } + this.logger.debug('Aftew view init'); + CoreSubscriptions.once(this.outlet.activateEvents, async () => { + this.logger.debug('Activate event triggered'); await CorePlatform.ready(); this.logger.debug('Hide splash screen'); @@ -213,6 +218,8 @@ export class AppComponent implements OnInit, AfterViewInit { protected async onPlatformReady(): Promise { await CorePlatform.ready(); + this.logger.debug('Platform is ready'); + // Refresh online status when changes. CoreNetwork.onChange().subscribe(() => { // Execute the callback in the Angular zone, so change detection doesn't stop working.