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
- For web (non-mobile) push, sends
include_subscription_idsinstead ofinclude_player_idsin the OneSignal REST request (aligned with subscription IDs from Web SDK v16 / Mauticpush_ids). - For mobile, keeps
include_player_ids. - If the OneSignal API returns HTTP 200 with a JSON
errorspayload or withidempty or null, the response is coerced to HTTP 422 so the defaultCampaignSubscriberdoes 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
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-23