question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari (Desktop) Push Notifications

See original GitHub issue

I’m a veteran of push notifications for iOS, but this is my first Safari experience. I’m fairly certain I’m doing things correctly but I’m not getting any notifications. Here’s my debug output…

//LOG OF NOTE
{ encoding: 'utf8',
  payload: {},
  expiry: 1396425645,
  identifier: 0,
  priority: 10,
  retryLimit: -1,
  device: undefined,
  alert: 'Test notification',
  badge: 1,
  sound: undefined,
  newsstandAvailable: undefined,
  contentAvailable: undefined,
  mdm: undefined,
  compiled: false,
  truncateAtWordEnd: false
}

//LOG OF DEVICE
{ token: <Buffer 48 69 54 db 1f 96 68 d1 aa 4e c1 b6 05 fc 0b a1 76 6e 69 96 37 4a 0f 43 68 6d 7b ef 83 fe b8 7d> }

//DEBUG OUTPUT
  apn Initialising connection +0ms
  apn Initialising module +1ms
  apn 1 left to send +1ms
  apn Connection established +642ms
  apn Transmitting notification from buffer +0ms
  apn Socket drained +1ms 0
  apn 0 left to send +0ms
  apn 0 left to send +0ms

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
emaddcommented, Jun 11, 2014

Could you provide an example of a message specifically for Safari?

0reactions
argoncommented, Jul 24, 2014

The Apple docs can probably explain it far better than I can, as I haven’t done any work with Push Notifications on Safari: https://developer.apple.com/library/prerelease/mac/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW1

If you’re looking for just a payload example I would recommend looking at Listing 2-4

—A

On 11 Jun 2014, at 15:50, emadd notifications@github.com wrote:

Could you provide an example of a message specifically for Safari?

— Reply to this email directly or view it on GitHub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari Push Notifications - Apple Developer
Use the Apple Push Notifications Service to send notifications to your website users, right on their Mac desktop — even when Safari isn't...
Read more >
iOS 16 enables web push notifications with Safari update
One of the biggest complaints about the iOS version of Safari is that it lacks push notifications for web apps, so websites are...
Read more >
Safari Push Notifications- Everything You Need To Know
Safari Push Notifications work just like App push notifications. These messages/notifications are delivered even when the Safari browser isn't ...
Read more >
How to Allow or Stop Notification Settings in Safari Mac?
Learn how to set up notifications settings for all the websites in the safari browser to allow or block the push notification within...
Read more >
How to build web push notifications for Safari users
Safari doesn't use service workers for push notifications. When requesting notification permission in Safari, you pass the URL of your web ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found