2017 © Pedro PelĂĄez
 

project safari-push-notifications

Creates push package for Apple / Safari web push notifications

image

granam/safari-push-notifications

Creates push package for Apple / Safari web push notifications

  • Thursday, January 11, 2018
  • by jaroslavtyc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Apple OS X (Mac OS) Safari push notifications

Heavily inspired by connorlacombe/Safari-Push-Notifications/., (*1)

Flow

On your Javascript command, by calling pushSafariNotification(webServiceId, webServiceUrl, serverPushUrl, userId, title, text, buttonText) - browser will check if is Safari of sufficient version (OS X v10.9 and later) - if user already allowed push notifications - then push notification is send - else if user already denied push notifications - then push notification is not sent (to find out if push notifications can be sent, call JS function hasUserAllowedPushNotifications) - if user does not YET decided to add or deny permissions to your side to send a push notification, it will - trigger JS event safariPushNotificationsPermissionsRequestStart on window JS object - then asks user for permissions to accept push notifications from your side via Safari build-in layout - then, if user agreed, Apple will send POST request to \Granam\Safari\PushPackageController::pushPackages by calling an URL you set via Apple developer console - then Apple will send user decision to \Granam\Safari\PushPackageController::devicesRegistrations by calling an URL you set via Apple developer console - then - if user agreed - thenJS event safariPushNotificationsPermissionsJustGranted is triggered on window object - then push notification is send - else if user declined, then JS event safariPushNotificationsPermissionsJustDenied is triggered on window object and push notification is not sent - then JS event safariPushNotificationsPermissionsRequestEnd is triggered on window object, (*2)

The Versions

11/01 2018

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

11/01 2018

dev-master

9999999-dev https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

11/01 2018

1.0.6

1.0.6.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

11/01 2018

1.0.5

1.0.5.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

11/01 2018

1.0.4

1.0.4.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

09/01 2018

1.0.3

1.0.3.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

09/01 2018

1.0.2

1.0.2.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

09/01 2018

1.0.1

1.0.1.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x

08/01 2018

1.0.0

1.0.0.0 https://github.com/jaroslavtyc/granam-apple-push-package

Creates push package for Apple / Safari web push notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

php apple push apns package os safari os x