message notification is modified

This commit is contained in:
병준 박 2019-12-23 16:37:44 +09:00
parent 77ac22d122
commit 6f9702f3db
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { Injectable, Inject } from '@angular/core';
import { Injectable, Inject, NgZone } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import {
UCAP_NATIVE_SERVICE,
@ -30,6 +30,7 @@ export class AppNativeService {
private publicApiService: PublicApiService,
private sessionStorageService: SessionStorageService,
@Inject(DOCUMENT) private document: Document,
private ngZone: NgZone,
private store: Store<any>,
private logger: NGXLogger
) {}
@ -40,8 +41,10 @@ export class AppNativeService {
});
this.nativeService.changeStatus().subscribe(statusCode => {});
this.nativeService.showSetting().subscribe(() => {
this.ngZone.run(() => {
this.store.dispatch(SettingsStore.showDialog());
});
});
}
subscribeAfterLogin(): void {

View File

@ -190,7 +190,8 @@ export class AppNotificationService {
? true
: false,
displayTime:
appUserInfo.settings.notification.alertExposureTime
appUserInfo.settings.notification.alertExposureTime *
1000
};
this.nativeService.notify(notiReq);
}
@ -540,7 +541,7 @@ export class AppNotificationService {
? true
: false,
displayTime:
appUserInfo.settings.notification.alertExposureTime
appUserInfo.settings.notification.alertExposureTime * 1000
};
this.nativeService.notify(notiReq);
}