简体   繁体   English

设置中的“推送通知”图标

[英]Push Notification icon in Settings

I've got an app that uses Apple's Push Notification Service. 我有一个使用Apple的Push Notification Service的应用程序。 I'm registered, and receive the notifications just fine. 我已经注册,并且可以收到通知。 However, when I go into the Settings -> Notifications area, my app is listed, but there's no icon visible. 但是,当我进入“设置”->“通知”区域时,我的应用已列出,但没有可见的图标。 Is there a flag, or a special PNG I need to include in my bundle? 我需要在包中包含标志或特殊的PNG吗?

Thanks! 谢谢!

Okay, stupid mistake. 好吧,愚蠢的错误。 The info.plist icon field was empty. info.plist图标字段为空。 By default, the OS still looks for an icon.png file for Springboard, but doesn't use the same trick for the Notification settings. 默认情况下,操作系统仍会为Springboard查找icon.png文件,但不会对Notification设置使用相同的技巧。

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

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