MOBILE-4270 core: Add more logging in app component
parent
1f3d72cfbb
commit
5b3244b619
|
@ -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<void> {
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue