kayac/Gunfish

"Unknown error message: NotRegistered"

Opened this issue · 0 comments

FCM returns NotRegistered, but Gunfish can't handle the errors.

Gunfish/supervisor.go

Lines 399 to 405 in febcd2e

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)
}