Skip to content

Commit

Permalink
Add more info to Android config (#6)
Browse files Browse the repository at this point in the history
* Add more info to Android config

* Change data type to a map[string]string

* Remove error from http response
  • Loading branch information
fbenevides authored Apr 10, 2024
1 parent 7f76753 commit f174514
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ type FcmNotification struct {
}

type FcmAndroidConfig struct {
Notification *FcmAndroidNotification `json:"notification"`
CollapseKey string `json:"collapse_key"`
Priority string `json:"priority,omitempty"`
TimeToLive *string `json:"ttl,omitempty"`
RestrictedPackageName string `json:"restricted_package_name,omitempty"`
Notification *FcmAndroidNotification `json:"notification"`
}

type FcmAndroidNotification struct {
Expand All @@ -37,7 +41,7 @@ type FcmAndroidNotification struct {
NotificationCount int `json:"notification_count,omitempty"`
}

type FcmData map[string]map[string]interface{}
type FcmData map[string]string

type FcmSendHttpResponse struct {
Status int `json:"-"`
Expand Down

0 comments on commit f174514

Please sign in to comment.