From 1643d47c2a4e946012455f5702b92e8402bb46a2 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Mon, 1 Feb 2016 15:49:30 -0500 Subject: #135 - initial code towards allowing system sound - not working yet Former-commit-id: 939d7ac5decaf5761b079b65bfdc9f8a5bebf164 --- www/external/GCMIntentService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'www/external') diff --git a/www/external/GCMIntentService.java b/www/external/GCMIntentService.java index 67230c22..9ffe5836 100644 --- a/www/external/GCMIntentService.java +++ b/www/external/GCMIntentService.java @@ -188,7 +188,8 @@ public class GCMIntentService extends GCMBaseIntentService implements PushConsta * Notification Sound */ if (soundOption) { - // setNotificationSound(context, extras, mBuilder); + /* PP Enable Sound option */ + setNotificationSound(context, extras, mBuilder); } /* @@ -224,7 +225,7 @@ public class GCMIntentService extends GCMBaseIntentService implements PushConsta Notification notification = mBuilder.build(); //notification.sound = Uri.parse("android.resource://" + context.getPackageName() + "/"+ R.raw.blop); //PP http://stackoverflow.com/questions/15449945/notification-sound-from-uri-parse-does-not-work - notification.sound = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/blop"); + //notification.sound = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/blop"); //notification.defaults |= Notification.DEFAULT_VIBRATE; mNotificationManager.notify((String) appName, notId, notification); } -- cgit v1.2.3