承接 granam/safari-push-notifications 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

granam/safari-push-notifications

Composer 安装命令:

composer create-project granam/safari-push-notifications

包简介

Creates push package for Apple / Safari web push notifications

README 文档

README

Heavily inspired by connorlacombe/Safari-Push-Notifications/.

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

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固