Skip to content

Commit

Permalink
doc nits
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 authored Jan 15, 2025
1 parent 7590bce commit 932a79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ Create a Live Activity notification object and configure it with the relevant pa
```javascript
let note = new apn.Notification();

note.topic = "<your-app-bundle-id>.push-type.liveactivity";
note.expiry = Math.floor(Date.now() / 1000) + 3600; // Expires 1 hour from now.
note.pushType = "liveactivity",
note.badge = 3;
note.sound = "ping.aiff";
note.alert = "\uD83D\uDCE7 \u2709 You have a new message";
note.payload = {'messageFrom': 'John Appleseed'};
note.topic = "<your-app-bundle-id>.push-type.liveactivity";
note.relevanceScore = 75,
note.timestamp = Math.floor(Date.now() / 1000); // Current time
note.staleDate = Math.floor(Date.now() / 1000) + (8 * 3600); // Expires 8 hour from now.
Expand Down

0 comments on commit 932a79d

Please sign in to comment.