<NME> root.component.ts
<BEF> import {Component, OnInit} from '@angular/core'
import {ShortcutsService} from './core/services/shortcuts.service'
import {TranslateService} from '@ngx-translate/core'
import {SettingsService} from './core/services/settings.service'
import {NotificationsService} from './core/services/notifications.service'
import {RouterOutlet} from '@angular/router'
import {routeAnimation} from './shared/animations/route.animation'

@Component({
    selector: 'mindmapp-root',
    templateUrl: 'root.component.html',
    styleUrls: ['./root.component.scss'],
    animations: [routeAnimation]
})
export class RootComponent implements OnInit {

    @ViewChild('outlet', {static: false}) public outlet: RouterOutlet
    public initialized: boolean

    constructor (private notificationService: NotificationsService,
                 private translateService: TranslateService,
                 private settingsService: SettingsService,
                 private shortcutsService: ShortcutsService) {
    public async ngOnInit () {
        const {settings, isFirstTime} = await this.settingsService.init()

        if (isFirstTime) {
        const translations = await this.initTranslations(settings.general.language)

        this.shortcutsService.init()
        this.notificationService.setInformations(translations.INITIAL_INFORMATION, 4000)

        if (isFirstTime) {
            this.notificationService.send(translations.WELCOME_MESSAGE)

        // If there is a PWA environment go to application page as default.
        if (window.matchMedia('(display-mode: standalone)').matches) {
            this.router.navigate(['app'], {
                replaceUrl: true
            })
        }

        if (isFirstTime) {
            this.notificationService.showSnackBarMessage('MESSAGES.WELCOME_MESSAGE')
        }
    }

    private async initTranslations (language: string): Promise<void> {
        this.translateService.setDefaultLang(language)
        await this.translateService.use(language).toPromise()
    }

}

<MSG> [refactor] improve notification service

<DFF> @@ -2,7 +2,7 @@ import {Component, OnInit, ViewChild} from '@angular/core'
 import {ShortcutsService} from './core/services/shortcuts.service'
 import {TranslateService} from '@ngx-translate/core'
 import {SettingsService} from './core/services/settings.service'
-import {NotificationsService} from './core/services/notifications.service'
+import {NotificationService} from './core/services/notification.service'
 import {RouterOutlet} from '@angular/router'
 import {routeAnimation} from './shared/animations/route.animation'
 
@@ -17,7 +17,7 @@ export class RootComponent implements OnInit {
     @ViewChild('outlet', {static: false}) public outlet: RouterOutlet
     public initialized: boolean
 
-    constructor (private notificationService: NotificationsService,
+    constructor (private notificationService: NotificationService,
                  private translateService: TranslateService,
                  private settingsService: SettingsService,
                  private shortcutsService: ShortcutsService) {
@@ -28,7 +28,7 @@ export class RootComponent implements OnInit {
         const translations = await this.initTranslations(settings.general.language)
 
         this.shortcutsService.init()
-        this.notificationService.setInformations(translations.INITIAL_INFORMATION, 4000)
+        this.notificationService.setMessage(translations.INITIAL_INFORMATION, 4000)
 
         if (isFirstTime) {
             this.notificationService.send(translations.WELCOME_MESSAGE)

[refactor] improve notification service