Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 2281819

Browse files
authored
Merge pull request #707 from superandrew213/android-remove-alert-trigger-for-silent-notifications
[Android] Remove default alert for silent push notifications
2 parents 0bcc9ac + 0c8f29b commit 2281819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationListenerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void onMessageReceived(String from, final Bundle bundle) {
2929
JSONObject data = getPushData(bundle.getString("data"));
3030
if (data != null) {
3131
if (!bundle.containsKey("message")) {
32-
bundle.putString("message", data.optString("alert", "Notification received"));
32+
bundle.putString("message", data.optString("alert", null));
3333
}
3434
if (!bundle.containsKey("title")) {
3535
bundle.putString("title", data.optString("title", null));

0 commit comments

Comments
 (0)