Skip to content

dokinoki/safari-push-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

safari-push-notifications

Classes for creating apple push notifications in PHP

How to create push packages for your website

1 - Create push folder in server
2 - Give permisions to folder (chown -R apache push)
3 - Create icon.iconset folder inside of push folder
4 - Add the icons to the icon.iconset folder according to apple´s guidelines
5 - Add p12 keyfile to push folder
6 - Create .htaccess rule to create REST endpoints
7 - Create pushClass and the methods register and deregister to save stuff to db

Structure

  • package.php --> serves the package to safari
  • register.php --> registers the user's notification consent with the device ID
  • log.php --> sends the errors to apache's error log

About

Generic package and classes for creating safari push notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages