From 5b3244b619227a282ca9c0e9c6d8046560ed0e7c Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 9 May 2023 16:31:37 +0200 Subject: [PATCH] MOBILE-4270 core: Add more logging in app component --- src/app/app.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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.