简体   繁体   English

通过Apns_PHP推送通知的iOS6存折通过更新不播放声音,与电话设置无关

[英]iOS6 passbook pass update through Apns_PHP push notification is not playing sound, independent of phone settings

I am testing the ApnsPHP_Push object as indicated in the example documents. 如示例文档中所示,我正在测试ApnsPHP_Push对象。 The APNS notification reaches the device, but I can't manage to hear a sound, no mater how I configure the message with setSound(); APNS通知到达了设备,但是我无法设法听到声音,更不用说如何使用setSound()配置消息了。

I tried: 我试过了:

  • not calling setSound(); 不调用setSound();
  • calling setSound(); 调用setSound();
  • calling setSound('default'); 调用setSound('default'); -calling setSound('chimes'); -调用setSound('chimes');

I also worked through the settings in 2 different iPhones, enabling and disabling the alternatives in the notifications settings, with no success. 我还研究了2部不同的iPhone中的设置,在通知设置中启用和禁用替代选项均未成功。 Is it possible the pass needs some configuration that could be missing to enable sound notifications or, for instance, in this case, a coupon pass can not receive sound notifications? 通行证是否可能需要某些配置才能启用声音通知,或者例如在这种情况下,优惠券通行证无法接收声音通知?

I am using latest version of iOS 6.0.1 with an iPhone 3GS. 我正在将最新版本的iOS 6.0.1与iPhone 3GS配合使用。

Thank you! 谢谢!

Addendum: I received this reply from Apple's developer forum 附录:我收到了苹果开发者论坛的回复

"Pass push notifications are different to App push notifications in that the push merely serves as a notification to tell the device to contact the webServiceURL and request that the updated pass be sent. App pushes contain a payload of new data that is instantly displayed when the push arrives. “通行证推送通知与App推送通知不同,因为该推送仅用作通知,告知设备联系webServiceURL并请求发送更新的通行证。App推送包含新数据的有效负载,当推送到达。

Your push should contain an empty payload as per the documentation - your sound is most likely being ingnored by device. 根据文档,您的推送应包含一个空的有效负载-您的声音很可能被设备忽略。 Your best bet is to file a feature request to see if sounds can be supported in a future release, but as on now, it is not possible to trigger a sound for a pass update." 最好的选择是提交功能请求,以查看将来的发行版中是否可以支持声音,但是从现在开始,无法触发声音以进行通行证更新。”

I wrote the post on the Apple Dev Forums, and it still stands as of the latest 6.1 beta build. 我在Apple Dev Forums上写了这篇文章,它仍然是最新的6.1 beta版本。

You cannot trigger an audible alert for a Passbook pass. 您无法为存折通过触发声音警报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM