MCPcopy Index your code
hub / github.com/parse-community/parse-server / provideInstallations

Function provideInstallations

spec/Parse.Push.spec.js:26–42  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

24};
25
26const provideInstallations = function (num) {
27 if (!num) {
28 num = 2;
29 }
30
31 const installations = [];
32 while (installations.length !== num) {
33 // add Android installations
34 const installation = new Parse.Object('_Installation');
35 installation.set('installationId', 'installation_' + installations.length);
36 installation.set('deviceToken', 'device_token_' + installations.length);
37 installation.set('deviceType', 'android');
38 installations.push(installation);
39 }
40
41 return installations;
42};
43
44const losingAdapter = {
45 send: function (body, installations) {

Callers 1

Parse.Push.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected