message notification is modified
This commit is contained in:
parent
77ac22d122
commit
6f9702f3db
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user