Skip to content

Commit

Permalink
Merge pull request #33 from ambrosus/fix-android-data
Browse files Browse the repository at this point in the history
fix: androidData
  • Loading branch information
serezhaolshan authored Nov 23, 2023
2 parents 6ef2934 + 8b181cf commit af015e2
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 @@ -40,6 +40,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 af015e2

Please sign in to comment.