FCM returns NotRegistered
, but Gunfish can't handle the errors.
|
if err.Error() == fcm.InvalidRegistration.String() { |
|
// TODO: should delete registration_id from server data store |
|
onResponse(result, errorResponseHandler.HookCmd(), cmdq) |
|
LogWithFields(logf).Errorf("%s", err) |
|
} else { |
|
LogWithFields(logf).Errorf("Unknown error message: %s", err) |
|
} |