Skip to content

Commit

Permalink
Merge pull request #707 from superandrew213/android-remove-alert-trig…
Browse files Browse the repository at this point in the history
…ger-for-silent-notifications

[Android] Remove default alert for silent push notifications
  • Loading branch information
Gp2mv3 authored Jul 4, 2018
2 parents 0bcc9ac + 0c8f29b commit 2281819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void onMessageReceived(String from, final Bundle bundle) {
JSONObject data = getPushData(bundle.getString("data"));
if (data != null) {
if (!bundle.containsKey("message")) {
bundle.putString("message", data.optString("alert", "Notification received"));
bundle.putString("message", data.optString("alert", null));
}
if (!bundle.containsKey("title")) {
bundle.putString("title", data.optString("title", null));
Expand Down

0 comments on commit 2281819

Please sign in to comment.