iOS 使用 node-apn 给通知一个标题
iOS give notification a title using node-apn
有没有办法使用 node-apn 设置粗体通知标题(就像大多数应用程序一样)?我尝试了以下设置器:
notification.body = "Body";
notification.title = "Title";
notification.alert = "Alert";
但通知中只包含警告,而且是普通文本,看起来有点奇怪。
您可以像这样object在警报中设置标题
alert: {
title: 'heres the title',
body: 'heres a body'
}
有没有办法使用 node-apn 设置粗体通知标题(就像大多数应用程序一样)?我尝试了以下设置器:
notification.body = "Body";
notification.title = "Title";
notification.alert = "Alert";
但通知中只包含警告,而且是普通文本,看起来有点奇怪。
您可以像这样object在警报中设置标题
alert: {
title: 'heres the title',
body: 'heres a body'
}