We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbd702 commit e9e5655Copy full SHA for e9e5655
firebase-messaging/src/main/java/com/google/firebase/messaging/RemoteMessage.java
@@ -35,6 +35,7 @@
35
import com.google.firebase.messaging.Constants.MessagePayloadKeys;
36
import java.lang.annotation.Retention;
37
import java.lang.annotation.RetentionPolicy;
38
+import java.util.HashMap;
39
import java.util.Map;
40
41
/**
@@ -131,7 +132,7 @@ public Map<String, String> getData() {
131
132
if (data == null) {
133
data = MessagePayloadKeys.extractDeveloperDefinedPayload(bundle);
134
}
- return data;
135
+ return new HashMap<>(data);
136
137
138
/** @hide */
0 commit comments