refactor(jpush): update IOS notification alert format to use map
Change the `Alert` field in `IOSNotif` from a string to a map containing `title` and `body` to support structured notification content.
This commit is contained in:
@@ -386,10 +386,12 @@ func BuildNotification(title, body string, notificationType string, extras map[s
|
|||||||
Priority: 1,
|
Priority: 1,
|
||||||
},
|
},
|
||||||
IOS: &IOSNotif{
|
IOS: &IOSNotif{
|
||||||
Alert: body,
|
Alert: map[string]any{
|
||||||
|
"title": title,
|
||||||
|
"body": body,
|
||||||
|
},
|
||||||
Sound: "default",
|
Sound: "default",
|
||||||
Badge: "+1",
|
Badge: "+1",
|
||||||
MutableContent: true,
|
|
||||||
Extras: iosExtras,
|
Extras: iosExtras,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user