2
0

apns.properties 1.1 KB

123456789101112131415161718192021
  1. # p12证书和p8证书选一个就行。如果选p12证书,请把 apns.auth_key_path的这几行删掉。
  2. # p12证书配置。
  3. apns.cer_path=apns/wfc.p12
  4. apns.cer_pwd=123456
  5. apns.voip_cer_path=apns/wfc_voip.p12
  6. apns.voip_cer_pwd=123456
  7. # p8证书配置
  8. apns.auth_key_path=apns/AuthKey_PXA4CCXXXX.p8
  9. apns.key_id=PXA4CCXXXX
  10. apns.team_id=Y8356MXXXX
  11. # 铃声配置
  12. apns.alert=default
  13. apns.voip_alert=ring.caf
  14. # 苹果要求使用voip推送必须使用callkit,不然会停掉voip推送。由于大陆政策,callkit被禁止,所以在大陆无法使用voip推送。
  15. # 苹果政策参考 https://developer.apple.com/documentation/pushkit/pkpushregistrydelegate/2875784-pushregistry?language=objc
  16. # On iOS 13.0 and later, if you fail to report a call to CallKit, the system will terminate your app. Repeatedly failing to report calls may cause the system to stop delivering any more VoIP push notifications to your app. If you want to initiate a VoIP call without using CallKit, register for push notifications using the UserNotifications framework instead of PushKit. For more information, see UserNotifications.
  17. apns.voip_feature=false