简体   繁体   English

推送通知徽章iphone上的错误的应用程序图标

[英]Wrong app icon on push notification badge iphone

I have implemented push notifications for my iPhone application. 我已经为我的iPhone应用程序实现了推送通知。 Everything is working fine. 一切都很好。 Only problem is when I receive notification during app is in background the iOS notification shows wrong icon for the notification. 唯一的问题是当我在应用程序处于后台时收到通知时,iOS通知显示通知的错误图标。 Like if notification came for App A it shows the icon of App B in notification badge. 就像App A的通知一样,它会在通知徽章中显示App B的图标。

What can cause this? 是什么导致这个? Is it certificates problem or what? 是证书问题还是什么? Any idea? 任何想法?

如果你有一些像“icon.png”的图像名称,它将显示在推送通知中

Few more thing can cause this issue, 几乎没有什么可以导致这个问题,

If you have used same push profile for two different project. 如果您为两个不同的项目使用了相同的推送配置文件。 Than also this will happen. 这也会发生。

Moreover if you have specified Small-Icon.png in you .plist file than that would be used as a push notification icon in notification screen. 此外,如果您在.plist文件中指定了Small-Icon.png,那么它将在通知屏幕中用作推送通知图标。

Please make sure this things in your projects. 请确保您的项目中有这些内容。

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

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