onesignal php,PHP-Onesignal徽章计数增量不起作用

在Onesignal API中,我添加了isIos => true,ios_badgeType =>增加,ios_badgeCount => 1,content_available =>在字段数组中为true.

但是徽章计数始终保持为1,并且不会随着多条消息的增加而增加.

这是我的有效负载详细信息:$fields = array(‘app_id’=>“ xxxxxx”,’included_segments’=> array(‘All’),’data’=> array(“ notification_type” =>“ “),’contents’=> $content,’subtitle’=>> $subtitle,’headings’=> $heading,’isIos’=> true,’ios_badgeType’=>”增加“,’ios_badgeCount ‘=> 1,’content_available’=> true);

解决方法:

您必须添加Notification Extension才能自动更新徽章.请遵循link to setup.

另外,需要创建应用程序组并将两个捆绑软件ID都分配给该特定组.请参阅-

In order for your application to be able to let push notifications

increment/decrement the badge count, you need to set up an App Group

for your application.

标签:onesignal,swift,cakephp,ios,php

来源: https://codeday.me/bug/20191108/2009618.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值