Skip to content

Commit

Permalink
GCM: Topic unregistrations are valid when they return an empty token
Browse files Browse the repository at this point in the history
(cherry picked from commit 9af8fb6)
  • Loading branch information
mar-v-in authored and WSTxda committed Dec 22, 2024
1 parent ada571a commit 9553f38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private static Bundle handleResponse(GcmDatabase database, RegisterRequest reque
resultBundle.putString(EXTRA_REGISTRATION_ID, attachRequestId(response.token, requestId));
}
} else {
if (!request.app.equals(response.deleted) && !request.app.equals(response.token) && !request.sender.equals(response.token)) {
if (!request.app.equals(response.deleted) && !request.app.equals(response.token) && !request.sender.equals(response.token) && !"".equals(response.token)) {
database.noteAppRegistrationError(request.app, response.responseText);
resultBundle.putString(EXTRA_ERROR, attachRequestId(ERROR_SERVICE_NOT_AVAILABLE, requestId));
} else {
Expand Down

0 comments on commit 9553f38

Please sign in to comment.