You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-23Lines changed: 18 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,12 +118,12 @@ You can send to multiple devices, independently of platform, creating an array w
118
118
119
119
```js
120
120
// Single destination
121
-
constregistrationIds='INSERT_YOUR_DEVICE_ID';
121
+
constregistrationIds="INSERT_YOUR_DEVICE_ID";
122
122
123
123
// Multiple destinations
124
124
constregistrationIds= [];
125
-
registrationIds.push('INSERT_YOUR_DEVICE_ID');
126
-
registrationIds.push('INSERT_OTHER_DEVICE_ID');
125
+
registrationIds.push("INSERT_YOUR_DEVICE_ID");
126
+
registrationIds.push("INSERT_OTHER_DEVICE_ID");
127
127
```
128
128
129
129
The `PN.send()` method later detects device type and therefore used push method, based on the id stucture. Check out the method `PN.getPushMethodByRegId` how this detection works.
@@ -146,10 +146,10 @@ It can be of 2 types:
146
146
Where type can be one of: 'apn', 'gcm', 'adm', 'wns', 'webPush'. The types are available as constants:
0 commit comments