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
note.timestamp=Math.floor(Date.now() /1000); // Current time
165
165
note.staleDate=Math.floor(Date.now() /1000) + (8*3600); // Expires 8 hour from now.
166
-
note.events="update"
166
+
note.event="update"
167
167
note.contentState= {}
168
168
```
169
169
@@ -179,7 +179,7 @@ This will result in the the following notification payload being sent to the dev
179
179
180
180
181
181
```json
182
-
{"messageFrom":"John Appleseed","aps":{"badge":3,"sound":"ping.aiff","alert":"\uD83D\uDCE7\u2709 You have a new message", "relevance-score":75,"timestamp":1683129662,"stale-date":1683216062,"events":"update","content-state":{}}}
182
+
{"messageFrom":"John Appleseed","aps":{"badge":3,"sound":"ping.aiff","alert":"\uD83D\uDCE7\u2709 You have a new message", "relevance-score":75,"timestamp":1683129662,"stale-date":1683216062,"event":"update","content-state":{}}}
183
183
```
184
184
185
185
You should only create one `Provider` per-process for each certificate/key pair you have. You do not need to create a new `Provider` for each notification. If you are only sending notifications to one app then there is no need for more than one `Provider`.
0 commit comments