gpt4 book ai didi

iOS 使用 node-apn 为通知提供标题

转载 作者:行者123 更新时间:2023-12-01 21:57:48 26 4
gpt4 key购买 nike

有没有办法使用node-apn 设置粗体通知标题(就像大多数应用程序一样)?我尝试过以下 setter :

notification.body = "Body";
notification.title = "Title";
notification.alert = "Alert";

但只有警报包含在通知中,并且是常规文本,看起来有点奇怪。

最佳答案

您可以像这样在警报对象中设置标题

alert: {
title: 'heres the title',
body: 'heres a body'
}

关于iOS 使用 node-apn 为通知提供标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50864804/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com