Problems with tabs and segments navigation using Ionic into an Electron app

I’ve found that the problem is in the file app.components.ts where I wrote:

   platform.ready().then(() => {
      statusBar.styleDefault();
      splashScreen.hide();
      this.settings.initLanguageSetting();
	  
      this.pages = [
        { title: 'Settings', component: SettingsPage },
      ];

      if (settings.getIsDesktopApp()){

        // Sono nell'App DESKTOP
        this.settings.isUserLogged.subscribe((value) => {
          if (true === value) {
            this.nav.setRoot(TabsPage);
            this.settings.isUserLogged.unsubscribe();
          }
        });
		
		.... 
		
		} else {
			....
		}
   }

where settings.isUserLogged is defined as a Behaviour.

export class SettingsProvider {
    ....

  public isUserLogged: BehaviorSubject<boolean> = new BehaviorSubject(false);

So something is wrong with the use of “this.settings.isUserLogged.subscribe”.
I’ve to found another way to do this.

cld