Skip to content

Commit

Permalink
fix: androidData
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhaolshan committed Nov 23, 2023
1 parent 3ce2476 commit 8b181cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/firebase/cloud-messaging/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func (s *service) SendMessage(ctx context.Context, title, body, pushToken string
androidData[key] = strconv.Itoa(v)
case bool:
androidData[key] = strconv.FormatBool(v)
case float64:
androidData[key] = strconv.FormatFloat(v, 'f', -1, 64)
}
}

Expand Down

0 comments on commit 8b181cf

Please sign in to comment.