mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[js][ios][messaging] fixed misc messaging .send() types
This commit is contained in:
@@ -6,7 +6,7 @@ export default class RemoteMessage {
|
||||
id: generatePushID(),
|
||||
ttl: 3600,
|
||||
// add the googleapis sender id part if not already added.
|
||||
sender: sender.includes('@') ? sender : `${sender}@gcm.googleapis.com`,
|
||||
sender: `${sender}`.includes('@') ? sender : `${sender}@gcm.googleapis.com`,
|
||||
type: 'remote',
|
||||
data: {},
|
||||
};
|
||||
@@ -27,7 +27,7 @@ export default class RemoteMessage {
|
||||
* @param id
|
||||
*/
|
||||
setId(id: string): RemoteMessage {
|
||||
this.properties.id = id;
|
||||
this.properties.id = `${id}`;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export default class RemoteMessage {
|
||||
* @returns {RemoteMessage}
|
||||
*/
|
||||
setType(type: string): RemoteMessage {
|
||||
this.properties.type = type;
|
||||
this.properties.type = `${type}`;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export default class RemoteMessage {
|
||||
* @returns {RemoteMessage}
|
||||
*/
|
||||
setCollapseKey(key: string): RemoteMessage {
|
||||
this.properties.collapseKey = key;
|
||||
this.properties.collapseKey = `${key}`;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user