Skip to content

Commit 7c07fff

Browse files
bivisssflovilmart
authored andcommitted
remove device token when APNS error is BadDeviceToken (#4220)
1 parent c777a26 commit 7c07fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StatusHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function pushStatusHandler(config, existingObjectId) {
226226
devicesToRemove.push(token);
227227
}
228228
// APNS errors
229-
if (error === 'Unregistered') {
229+
if (error === 'Unregistered' || error === 'BadDeviceToken') {
230230
devicesToRemove.push(token);
231231
}
232232
}

0 commit comments

Comments
 (0)