morriszhao/firebase-fcm 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

morriszhao/firebase-fcm

Composer 安装命令:

composer require morriszhao/firebase-fcm

包简介

php fcm firebase cloud message push h5 notification web push server worker

README 文档

README

google firebase fcm PHP
h5 notification 可由php进行消息推送

安装

composer require morriszhao/firebase-fcm

使用

客户端获取token:

需要翻墙!!!

1、首先到firebase 控制台创建自己的 fireabase项目:A

2、转到项目设置->常规  将项目A firebaseConfig 参数 填写到 html/index.html  html/firebase-messaging-sw.js 相应位置

3、转到项目设置->云消息传递  在下方的网络配置  点击生成私钥  然后将公钥 填写到 html/index.html的usePublicVapidKey()

4、 运行 index.html  生成注册令牌(由于google的限制  必须是https  或者localhost   测试时将localhost 指向html/index.html)

服务端推送:

具体查看  test/index.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固