Merge pull request #1853 from dpalou/MOBILE-2947
MOBILE-2947 notification: Apply color to small iconmain
commit
6e69bebc02
|
@ -70,5 +70,6 @@
|
||||||
"multisitesdisplay": "",
|
"multisitesdisplay": "",
|
||||||
"skipssoconfirmation": false,
|
"skipssoconfirmation": false,
|
||||||
"forcedefaultlanguage": false,
|
"forcedefaultlanguage": false,
|
||||||
"privacypolicy": "https:\/\/moodle.org\/mod\/page\/view.php?id=8148"
|
"privacypolicy": "https:\/\/moodle.org\/mod\/page\/view.php?id=8148",
|
||||||
|
"notificoncolor": "#f98012"
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,8 @@ export class CorePushNotificationsProvider {
|
||||||
return {
|
return {
|
||||||
android: {
|
android: {
|
||||||
sound: !!soundEnabled,
|
sound: !!soundEnabled,
|
||||||
icon: 'smallicon'
|
icon: 'smallicon',
|
||||||
|
iconColor: CoreConfigConstants.notificoncolor
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
alert: 'true',
|
alert: 'true',
|
||||||
|
|
|
@ -25,6 +25,7 @@ import { CoreTextUtilsProvider } from './utils/text';
|
||||||
import { CoreUtilsProvider } from './utils/utils';
|
import { CoreUtilsProvider } from './utils/utils';
|
||||||
import { SQLiteDB, SQLiteDBTableSchema } from '@classes/sqlitedb';
|
import { SQLiteDB, SQLiteDBTableSchema } from '@classes/sqlitedb';
|
||||||
import { CoreConstants } from '@core/constants';
|
import { CoreConstants } from '@core/constants';
|
||||||
|
import { CoreConfigConstants } from '../configconstants';
|
||||||
import { Subject, Subscription } from 'rxjs';
|
import { Subject, Subscription } from 'rxjs';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -481,6 +482,7 @@ export class CoreLocalNotificationsProvider {
|
||||||
if (this.platform.is('android')) {
|
if (this.platform.is('android')) {
|
||||||
notification.icon = notification.icon || 'res://icon';
|
notification.icon = notification.icon || 'res://icon';
|
||||||
notification.smallIcon = notification.smallIcon || 'res://smallicon';
|
notification.smallIcon = notification.smallIcon || 'res://smallicon';
|
||||||
|
notification.color = notification.color || CoreConfigConstants.notificoncolor;
|
||||||
|
|
||||||
const led: any = notification.led || {};
|
const led: any = notification.led || {};
|
||||||
notification.led = {
|
notification.led = {
|
||||||
|
|
Loading…
Reference in New Issue