From caff55ec758fdf298029ae98aff7f6a8a097feac Mon Sep 17 00:00:00 2001 From: Dave Alden Date: Mon, 7 Oct 2019 15:06:04 +0100 Subject: [PATCH] Add namespace to provider authority to prevent crashes on Android. (#1772) * Add namespace to provider authority to prevent crashes on Android. See https://github.com/katzer/cordova-plugin-local-notifications/issues/1664 * Comment out android-sdk requirement since it's not being applied correctly. See https://github.com/katzer/cordova-plugin-local-notifications/issues/1561 * oreo bug fix, no smallIcon set in notification (#1792) * Update AssetUtil.java Removing Resources.getSystem() to get resource ID because in android 8.1 (physical device) it fire an exception with the DEFALUT_ICON (res://icon) if no smallIcon is set in the notification schedule. Changed also Options.java for small icon fallback * Update Options.java Removed resId = context.getApplicationInfo().icon The application icon is set always and it is not able to select the resId = android.R.drawable.ic_popup_reminder. This is always set (API 1) and not showing ugly as app icon (notification small icon should be a silhouette) --- plugin.xml | 4 ++-- src/android/notification/util/AssetUtil.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index ebb9e1738..e7e539ec5 100644 --- a/plugin.xml +++ b/plugin.xml @@ -44,7 +44,7 @@ - + @@ -103,7 +103,7 @@