[js][ios][messaging] fixed misc messaging .send() types

This commit is contained in:
Salakar
2017-04-03 10:33:18 +01:00
parent 30e9d82732
commit 343710dbf9
3 changed files with 9 additions and 9 deletions

View File

@@ -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;
}