From fb4b533f2b31daebc7ed57c16228458def3d2af9 Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Fri, 6 Jan 2017 12:17:36 -0500 Subject: [PATCH] :bug::penguin: Issue #1421: Notification delay caused by icon bitmap timeout --- src/android/com/adobe/phonegap/push/GCMIntentService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/com/adobe/phonegap/push/GCMIntentService.java b/src/android/com/adobe/phonegap/push/GCMIntentService.java index e1a2b75c8..713ac4d90 100644 --- a/src/android/com/adobe/phonegap/push/GCMIntentService.java +++ b/src/android/com/adobe/phonegap/push/GCMIntentService.java @@ -762,6 +762,7 @@ public Bitmap getBitmapFromURL(String strURL) { try { URL url = new URL(strURL); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); + connection.setConnectTimeout(15000); connection.setDoInput(true); connection.connect(); InputStream input = connection.getInputStream();