Can't push notification to APNS to update my pass in Apple Wallet
问题 I'm trying to push notification to APNS to update my pass in Apple Wallet app. According to this document, we only need to send the pass type identifier and the push token to APNs. Then they will take care of the rest. $apnsHost = 'gateway.push.apple.com'; $apnsPort = 2195; $apnsCert = base_path('app/config/passbook/certificates.pem'); $payload = ['aps' => []]; $payload = json_encode($payload); $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local