MOBILE-2827 icon: Use small icon for Android notifications
parent
6f6e4449a7
commit
d6f5b5738c
|
@ -59,6 +59,10 @@
|
||||||
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
||||||
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
||||||
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-ldpi-smallicon.png" target="app/src/main/res/mipmap-ldpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-mdpi-smallicon.png" target="app/src/main/res/mipmap-mdpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-hdpi-smallicon.png" target="app/src/main/res/mipmap-hdpi/smallicon.png" />
|
||||||
|
<resource-file src="resources/android/icon/drawable-xhdpi-smallicon.png" target="app/src/main/res/mipmap-xhdpi/smallicon.png" />
|
||||||
</platform>
|
</platform>
|
||||||
<platform name="ios">
|
<platform name="ios">
|
||||||
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -94,7 +94,8 @@ export class AddonPushNotificationsProvider {
|
||||||
return {
|
return {
|
||||||
android: {
|
android: {
|
||||||
senderID: CoreConfigConstants.gcmpn,
|
senderID: CoreConfigConstants.gcmpn,
|
||||||
sound: !!soundEnabled
|
sound: !!soundEnabled,
|
||||||
|
icon: 'smallicon'
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
alert: 'true',
|
alert: 'true',
|
||||||
|
|
|
@ -448,7 +448,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://icon';
|
notification.smallIcon = notification.smallIcon || 'res://smallicon';
|
||||||
|
|
||||||
const led: any = notification.led || {};
|
const led: any = notification.led || {};
|
||||||
notification.led = {
|
notification.led = {
|
||||||
|
|
Loading…
Reference in New Issue