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

View File

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