r-martins/mautic-plugin-onesignal-web16 问题修复 & 功能扩展

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

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

r-martins/mautic-plugin-onesignal-web16

最新稳定版本:1.0.0

Composer 安装命令:

composer require r-martins/mautic-plugin-onesignal-web16

包简介

OneSignal Web SDK v16: use include_subscription_ids for web, and mark campaign push as failed when OneSignal returns errors or an empty id in JSON (including HTTP 200).

README 文档

README

Plugin for Mautic 7.x that avoids editing core for OneSignal web push (Web SDK v16 subscription IDs) and for treating OneSignal JSON errors in HTTP-200 responses as send failures in campaigns.

What it does

  1. For web (non-mobile) push, sends include_subscription_ids instead of include_player_ids in the OneSignal REST request (aligned with subscription IDs from Web SDK v16 / Mautic push_ids).
  2. For mobile, keeps include_player_ids.
  3. If the OneSignal API returns HTTP 200 with a JSON errors payload or with id empty or null, the response is coerced to HTTP 422 so the default CampaignSubscriber does not record a false “delivered” outcome.

Requirements

  • PHP >= 8.2
  • Mautic 7.x (mautic/core-lib ^7.0)

Install (Composer, recommended for Packagist)

From the Mautic project root (Composer-based install):

composer require mtc/mautic-plugin-onesignal-web16
php bin/console mautic:plugins:reload
php bin/console cache:clear

In the Mautic UI: Settings → Plugins, install/enable OnesignalWeb16 if necessary.

License

GPL-3.0-or-later (same family as Mautic core).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2026-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固