Skip to content

Commit

Permalink
Add click action to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Dec 29, 2023
1 parent 3250276 commit 91e10c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion breezsdk/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func createMessageFactory() services.FCMMessageBuilder {
func createSilentPush(notification *notify.Notification) (*messaging.Message, error) {
data := notification.Data
data["notification_type"] = notification.Template
data["click_action"] = "FLUTTER_NOTIFICATION_CLICK"

return &messaging.Message{
Token: notification.TargetIdentifier,
Expand All @@ -47,7 +48,7 @@ func createSilentPush(notification *notify.Notification) (*messaging.Message, er
Payload: &messaging.APNSPayload{
Aps: &messaging.Aps{
Alert: &messaging.ApsAlert{
Title: "Incoming payment",
Title: "Receiving payment...",
},
ContentAvailable: false,
MutableContent: true,
Expand Down

0 comments on commit 91e10c8

Please sign in to comment.