Skip to content

Commit

Permalink
Merge pull request #51 from varungupta85/master
Browse files Browse the repository at this point in the history
Play custom sound when the sound is set for local notification
  • Loading branch information
zetavg authored Jun 23, 2016
2 parents 77b0aa7 + cb5217e commit 589dac7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.Nullable;
import android.net.Uri;

import java.lang.System;
import java.util.HashMap;
Expand Down Expand Up @@ -228,6 +229,10 @@ else if (attributes.bigStyleImageBase64 != null) {
notificationBuilder.setLocalOnly(attributes.localOnly);
}

if (attributes.sound != null) {
notificationBuilder.setSound(Uri.parse(attributes.sound));
}

return notificationBuilder.build();
}

Expand Down

0 comments on commit 589dac7

Please sign in to comment.