MOBILE-2827 icon: Use small icon for Android notifications

main
Dani Palou 2019-01-31 09:05:35 +01:00
parent 6f6e4449a7
commit d6f5b5738c
8 changed files with 7 additions and 2 deletions

View File

@ -59,6 +59,10 @@
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-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 name="ios">
<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

View File

@ -94,7 +94,8 @@ export class AddonPushNotificationsProvider {
return {
android: {
senderID: CoreConfigConstants.gcmpn,
sound: !!soundEnabled
sound: !!soundEnabled,
icon: 'smallicon'
},
ios: {
alert: 'true',

View File

@ -448,7 +448,7 @@ export class CoreLocalNotificationsProvider {
if (this.platform.is('android')) {
notification.icon = notification.icon || 'res://icon';
notification.smallIcon = notification.smallIcon || 'res://icon';
notification.smallIcon = notification.smallIcon || 'res://smallicon';
const led: any = notification.led || {};
notification.led = {