Kaynağa Gözat

Support for Android content:// scheme

Sebastián Katzer 8 yıl önce
ebeveyn
işleme
3e6ea39910

+ 2 - 0
src/android/notification/util/AssetUtil.java

@@ -91,6 +91,8 @@ public final class AssetUtil {
             return getUriFromAsset(path);
         } else if (path.startsWith("http")){
             return getUriFromRemote(path);
+        } else if (path.startsWith("content://")){
+            return Uri.parse(path);
         }
 
         return Uri.EMPTY;

+ 0 - 1
www/local-notification-util.js

@@ -55,7 +55,6 @@ exports.applyPlatformSpecificOptions = function () {
         defaults.group        = null;
         defaults.groupSummary = false;
         defaults.summary      = null;
-        defaults.icon         = null;
         defaults.smallIcon    = 'res://icon';
         defaults.sticky       = false;
         defaults.autoClear    = true;