简体   繁体   English

是否可以在iOS推送通知中的标题文本内显示图像?

[英]Is it possible to display an image inside the title text in an iOS Push Notification?

I have a request from a client to implement this small image for certain cases of push notifications. 我有一个客户的请求,要在某些情况下为推送通知实施此小图像。 The problem is the location must be in/beside the title (see attached image, the red-outlined box), and was just wondering if this is at all possible to do, and if so, how. 问题在于位置必须在标题中/旁边(请参见附图,红色轮廓框),并且只是想知道是否可以这样做,如果可以,怎么做。

在此处输入图片说明

No, it's not possible to include images in notifications like that. 不,这样的通知中不能包含图片。 You must include them as media attachments (which will appear at the right side of the notification), more information about that here . 您必须将它们作为媒体附件 (将出现在通知的右侧)包括在此处 ,有关更多信息。

Alternatively, you can use an emoji in the title of the notification. 或者,您可以在通知标题中使用表情符号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM