简体   繁体   English

更新通行证时未收到Apple Push Notification

[英]Apple Push Notification not received when updating a pass

I am having some passes in my iPhone wallet. 我的iPhone钱包里有通行证。 When passes are updated I am not receiving APN on my iPhone. 更新通行证后,我的iPhone上没有收到APN。 Can you please help me to understand what can be reason? 您能帮我理解可能是什么原因吗? Below is the iPhone logs retrieved by the Mac console. 以下是Mac控制台检索到的iPhone日志。

Thanks 谢谢

default 16:54:57.540688 +0400   passd   Signature validation: succeeded
default 16:54:57.586711 +0400   passd   Color sampled for lightness: 0.634640.
default 16:54:57.833743 +0400   passd   Color sampled for lightness: 0.634640.
default 16:54:57.959896 +0400   passd   Begin delaying exit: AddUbiquitousCard (3)
default 16:54:57.960004 +0400   passd   inserting ubiquitous version of pass: <private>
default 16:54:57.960057 +0400   passd   Write options: 8 -- URL: <private> -- purposeID: 057760F0-09BC-4C80-86F6-7A4A2600633B -- claimID: D5639FC0-B5CD-4B6F-8089-4801B0C34F14
default 16:54:57.960286 +0400   passd   Updating Pass: <private>

default 16:54:57.962248 +0400   passd   Claim D5639FC0-B5CD-4B6F-8089-4801B0C34F14 granted in client
default 16:54:57.962304 +0400   passd   Claim D5639FC0-B5CD-4B6F-8089-4801B0C34F14 invoked in client
default 16:54:57.962805 +0400   passd   copying <private> to <private>
default 16:54:57.982826 +0400   passd   Begin delaying exit: com.apple.passd.passbookBackgroundFetch.coalesce (4)
default 16:54:57.987912 +0400   passd   Updating badge count to 0
default 16:54:57.988099 +0400   passd   Beginning spotlight index of 1 passes.
default 16:54:57.991779 +0400   passd   Inserting User Notification: [<private>] into Pass User Notification Center: [<private>]
default 16:54:57.991885 +0400   passd   Cannot insert User Notification: <private> in Notification Center: <private> as it is not valid.
default 16:54:57.997962 +0400   passd   Spotlight index of passes completed with error (null).
default 16:54:58.006208 +0400   passd   End delaying exit: AddUbiquitousCard (3)
default 16:54:58.008358 +0400   passd   Field Detector: Disabling field detection...
default 16:54:58.008485 +0400   passd   Begin delaying exit: WrittenCardRevocationCheck (4)
default 16:54:58.008529 +0400   passd   Field Detector: Disabled field detection.
default 16:54:58.046179 +0400   passd   Deactivating task <private>
default 16:54:58.046637 +0400   passd   No tasks remain in PDNetworkTaskManager 0x103949ab0
default 16:54:58.046883 +0400   passd   PDNetworkTaskManager 0x103949ab0: Released power assertion: <private> (36353)
default 16:54:58.047114 +0400   passd   End delaying exit: ActiveTasks (3)
default 16:54:58.047770 +0400   passd   Removing Scheduled Activity: PDNetworkTaskManagerActivateEligibleTasksActivityIdentifier for Client: <private>
default 16:54:58.048135 +0400   passd   Begin delaying exit: Archiving Scheduled Activities (4)
default 16:54:58.048370 +0400   passd   Scheduling Activate Tasks Activity with a start date of: Tue Jun  4 16:56:03 2019
default 16:54:58.050808 +0400   passd   removing all entries config 0x100f65d10
default 16:54:58.051127 +0400   passd   TIC TCP Conn Cancel [73:0x1027aae40]
default 16:54:58.051846 +0400   passd   [C73 Hostname#fddb075a:443 tcp, url hash: 15f357dd, tls] cancel
default 16:54:58.052171 +0400   passd   [C73 Hostname#fddb075a:443 tcp, url hash: 15f357dd, tls] cancelled
  1. If your API Handler works by HTTP make sure that you are turned on the setting something like "Allow Http while Wallet testing" on iPhone where your Pass installed. 如果您的API处理程序通过HTTP工作,请确保在安装Pass的iPhone上启用“在进行钱包测试时允许Http”之类的设置。 You will need HTTPS on production 您将需要在生产中使用HTTPS
  2. Make sure that your API Handler has right Interface (URI path, incoming parameters, etc.) 确保您的API处理程序具有正确的接口(URI路径,传入参数等)
  3. Make sure that your iPhone where your Pass installed has access to API Handler (security, reachability) 确保安装Pass的iPhone可以访问API处理程序(安全性,可达性)

The easiest way to check it: setup proxy on your iPhone and send all traffic from it to PC/Mac (for example using Charles Proxy). 检查它的最简单方法是:在iPhone上设置代理,并将所有流量从它发送到PC / Mac(例如,使用Charles Proxy)。 You will be able to see all requests that the device sends to your API Handler. 您将能够看到设备发送到API处理程序的所有请求。

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

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