diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-02-01 15:49:30 -0500 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-02-01 15:49:30 -0500 |
| commit | 1643d47c2a4e946012455f5702b92e8402bb46a2 (patch) | |
| tree | 5d5af99bc42b9f05fe0fb4c948214d24287e5a17 /www/external | |
| parent | 6f70a38294bd6a5ca24fad669d6280b4bce7b952 (diff) | |
#135 - initial code towards allowing system sound - not working yet
Former-commit-id: 939d7ac5decaf5761b079b65bfdc9f8a5bebf164
Diffstat (limited to 'www/external')
| -rw-r--r-- | www/external/GCMIntentService.java | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |
