如何在通知iOS中更改图标? [英] How to change icon in notification iOS?

查看:298
本文介绍了如何在通知iOS中更改图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个基于导航的应用程序,其中有一些功能可以提醒用户某些事件的发生. 为此,我们正在使用推式通知,我知道如何实现推式通知,

I am creating a navigation based application, in that there is function that will alert the user for some events that will occur. For that we are using Push notification, i know how to implement push notification,

但是我的问题是,推送通知到来时,我可以在通知中心更改图标吗?

But My question is can i change the icon in notification centre when push notification comes?

注意:我不是在谈论徽章图标,

Note: i am not talk about badge icon,

检查所需的通知中心图像:

Check desired images of notificaiton centre:

如果没有,请提供参考.

If not please provide reference for that.

推荐答案

推送通知的布局和显示方式是由iOS定义的,您可以提供始终与推送通知一起使用的应用程序图标(始终相同),并且文字信息.您使用的图标必须基于用于应用程序本身的相同应用程序图标.这是准则的一部分.

The layout and presentation of push notifications is defined by iOS you are able to supply an app icon that is always used with your push notifications (always the same) and the textual message. The icon you use must be based on the same app icon you use for the app itself. This is part of the guidelines.

这里是参考

https://developer.apple.com/ios/human -interface-guidelines/features/notifications/

这篇关于如何在通知iOS中更改图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆