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

Commit 0c8f29b

Browse files
Remove default message
1 parent 47118fe commit 0c8f29b

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)