Skip to content

Commit c1b3591

Browse files
authored
Feature: Notification - support Image attibute
1 parent 966dad0 commit c1b3591

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

models.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ type (
160160
// Body indicates notification body text.
161161
Body string `json:"body,omitempty"`
162162

163+
// Image should contains the URL of an image that is going to be downloaded on the device and displayed in a notification.
164+
Image string `json:"image,omitempty"`
165+
163166
// AndroidChannelID The notification's channel id (new in Android O).
164167
// The app must create a channel with this channel ID before any notification with this channel ID is received.
165168
// If you don't send this channel ID in the request, or if the channel ID provided has

0 commit comments

Comments
 (0)