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,7 +41,9 @@ export class AppNativeService {
}); });
this.nativeService.changeStatus().subscribe(statusCode => {}); this.nativeService.changeStatus().subscribe(statusCode => {});
this.nativeService.showSetting().subscribe(() => { this.nativeService.showSetting().subscribe(() => {
this.store.dispatch(SettingsStore.showDialog()); this.ngZone.run(() => {
this.store.dispatch(SettingsStore.showDialog());
});
}); });
} }

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);
} }