From 62706f9629c1d61f651e1ba9359e8ad7bee435f6 Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Wed, 11 Apr 2018 18:27:02 +0100 Subject: [PATCH] [notifications][android] Fix file:// for android notification images --- .../firebase/notifications/RNFirebaseNotificationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java b/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java index 208d2c18..25eadab3 100644 --- a/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java +++ b/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java @@ -517,7 +517,7 @@ public class RNFirebaseNotificationManager { if (image.startsWith("http://") || image.startsWith("https://")) { return getBitmapFromUrl(image); } else if (image.startsWith("file://")) { - return BitmapFactory.decodeFile(image); + return BitmapFactory.decodeFile(image.replace("file://", "")); } else { int largeIconResId = getResourceId("mipmap", image); return BitmapFactory.decodeResource(context.getResources(), largeIconResId);