diff --git a/config.xml b/config.xml index a5eb4c297..4e212fa13 100644 --- a/config.xml +++ b/config.xml @@ -59,6 +59,10 @@ + + + + diff --git a/hooks/after_prepare/030_android_splash.js b/hooks/after_prepare/030_android_resources.js similarity index 100% rename from hooks/after_prepare/030_android_splash.js rename to hooks/after_prepare/030_android_resources.js diff --git a/resources/android/icon/drawable-hdpi-smallicon.png b/resources/android/icon/drawable-hdpi-smallicon.png new file mode 100644 index 000000000..5262dcb0f Binary files /dev/null and b/resources/android/icon/drawable-hdpi-smallicon.png differ diff --git a/resources/android/icon/drawable-ldpi-smallicon.png b/resources/android/icon/drawable-ldpi-smallicon.png new file mode 100644 index 000000000..3360a685b Binary files /dev/null and b/resources/android/icon/drawable-ldpi-smallicon.png differ diff --git a/resources/android/icon/drawable-mdpi-smallicon.png b/resources/android/icon/drawable-mdpi-smallicon.png new file mode 100644 index 000000000..c8df8f94d Binary files /dev/null and b/resources/android/icon/drawable-mdpi-smallicon.png differ diff --git a/resources/android/icon/drawable-xhdpi-smallicon.png b/resources/android/icon/drawable-xhdpi-smallicon.png new file mode 100644 index 000000000..28081d204 Binary files /dev/null and b/resources/android/icon/drawable-xhdpi-smallicon.png differ diff --git a/src/addon/pushnotifications/providers/pushnotifications.ts b/src/addon/pushnotifications/providers/pushnotifications.ts index 01ac2318c..637612df3 100644 --- a/src/addon/pushnotifications/providers/pushnotifications.ts +++ b/src/addon/pushnotifications/providers/pushnotifications.ts @@ -94,7 +94,8 @@ export class AddonPushNotificationsProvider { return { android: { senderID: CoreConfigConstants.gcmpn, - sound: !!soundEnabled + sound: !!soundEnabled, + icon: 'smallicon' }, ios: { alert: 'true', diff --git a/src/providers/local-notifications.ts b/src/providers/local-notifications.ts index 5b64a5f64..75e0b555e 100644 --- a/src/providers/local-notifications.ts +++ b/src/providers/local-notifications.ts @@ -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 = {