Closed raghav18gupta closed 1 year ago
ApplePushType.Background
is unreliable, i.e. its delivery can be postponed arbitrarily by APNs. It is also subject to rate limit on a per-day basis.
Alert
however should be received without a noticeable delay. Do you see an alert message on your phone after sending an Alert
push? If so, does this also happen after some delay?
@alexalok As I send to notification to inbuilt Apple Wallet application, there is no notification as such even if send using Alert
type. Apple Wallet to update its balance, which in turn calls below to APIs of our service:
webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier?passesUpdatedSince=tag
webServiceURLversion/passes/passTypeIdentifier/serialNumber
Service sends a push notification to api.push.apple.com:443
using HTTP/2 protocol and uses Pass Type ID with NFC Certificate for auth, with success every time and the wallet invokes the above two APIs hence balance gets updated.
Ah, I see. Sorry, I don't have any experience with Apple Wallet so can't really be of much help there. Perhaps the delay is by design.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Web service sending notifications to Apple Wallet Passes to update its balance, but around 30% of the times, balance update happens after a delay. Is there any way to ensure that it happens instantaneously? I am using
ApplePushType.Background
and pass certificate for Auth. Also tried withAlert
push type, setting expiration header to UtcNow + 5 mins, but the results are same.