File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ - [ added] ` messaging.AndroidNotification ` type now supports channel_id.
3
4
- [ dropped] Dropped support for Go 1.8 and earlier.
4
5
- [ fixed] Fixing error handling in FCM. The SDK now checks the key
5
6
` type.googleapis.com/google.firebase.fcm.v1.FcmError ` to set error code.
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ type AndroidNotification struct {
215
215
BodyLocArgs []string `json:"body_loc_args,omitempty"`
216
216
TitleLocKey string `json:"title_loc_key,omitempty"`
217
217
TitleLocArgs []string `json:"title_loc_args,omitempty"`
218
+ ChannelID string `json:"channel_id,omitempty"`
218
219
}
219
220
220
221
// WebpushConfig contains messaging options specific to the WebPush protocol.
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ var validMessages = []struct {
148
148
TitleLocArgs : []string {"t1" , "t2" },
149
149
BodyLocKey : "blk" ,
150
150
BodyLocArgs : []string {"b1" , "b2" },
151
+ ChannelID : "channel" ,
151
152
},
152
153
TTL : & ttlWithNanos ,
153
154
},
@@ -165,6 +166,7 @@ var validMessages = []struct {
165
166
"title_loc_args" : []interface {}{"t1" , "t2" },
166
167
"body_loc_key" : "blk" ,
167
168
"body_loc_args" : []interface {}{"b1" , "b2" },
169
+ "channel_id" : "channel" ,
168
170
},
169
171
"ttl" : "1.500000000s" ,
170
172
},
You can’t perform that action at this time.
0 commit comments