Adds support to store push results

This commit is contained in:
Florent Vilmart
2016-03-13 23:34:44 -04:00
parent 05baf36a46
commit 7c387e1ee9
5 changed files with 183 additions and 75 deletions

View File

@@ -10,6 +10,9 @@ import PushAdapter from './PushAdapter';
import { classifyInstallations } from './PushAdapterUtils';
export class ParsePushAdapter extends PushAdapter {
supportsPushTracking = true;
constructor(pushConfig = {}) {
super(pushConfig);
this.validPushTypes = ['ios', 'android'];
@@ -56,7 +59,7 @@ export class ParsePushAdapter extends PushAdapter {
}))
} else {
let devices = deviceMap[pushType];
sendPromises.push(sender.send(data, devices));
sendPromises.push(sender.send(data, devices));
}
}
return Parse.Promise.when(sendPromises);