0

I successfully configured and connected Safari Web Push. When sending request through the REST api I get a successful code 202 but the push notification does not received by Safari browser.

Raj Tivari
  • 11
  • 2

1 Answers1

0

For Safari web push notification you need to pass all the optional settings when you are sending the notification. For example:

{ "message": { "alert": "Safari Web Notification with icon and title for registered devices ", "url": "www.ibm.com" }, "settings" : { "safariWeb": { "title": "Flight A998 Now Boarding", "body": "Boarding has begun for Flight A998.", "action": "View", "urlArgs": ["www.google.com"] } }, "target":{ "platforms":["WEB_SAFARI"] } }

pradeep sg
  • 193
  • 1
  • 6