Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

APNS token should be removed from the db when apnsErrorStatus=410 #536

Closed
cheungpat opened this issue Jan 31, 2018 · 2 comments
Closed

APNS token should be removed from the db when apnsErrorStatus=410 #536

cheungpat opened this issue Jan 31, 2018 · 2 comments

Comments

@cheungpat
Copy link
Contributor

This error can occur in skygear server when the APNS return a error status 410 (The device token is no longer active for the topic.) https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

Since the token no longer works, sending notification to the token will result in more errors. When encountering the error, the token should be removed from the device table.

  • Skygear Server Date/Version: 0.240
@cheungpat
Copy link
Contributor Author

adding this to the next bug fix milestone

@cheungpat
Copy link
Contributor Author

it is confirmed that expired tokens are removed from db

cheungpat added a commit to cheungpat/skygear-server that referenced this issue Apr 9, 2018
If the error occurred for sending push notification is `Gone` or
`BadDeviceToken`, the log level will be Info instead of Error.

refs SkygearIO#536
cheungpat added a commit to cheungpat/skygear-server that referenced this issue Apr 12, 2018
If the error occurred for sending push notification is `Gone` or
`BadDeviceToken`, the log level will be Info instead of Error.

refs SkygearIO#536
carmenlau pushed a commit that referenced this issue Apr 12, 2018
If the error occurred for sending push notification is `Gone` or
`BadDeviceToken`, the log level will be Info instead of Error.

refs #536
carmenlau pushed a commit that referenced this issue May 3, 2018
If the error occurred for sending push notification is `Gone` or
`BadDeviceToken`, the log level will be Info instead of Error.

refs #536
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants