Question

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:

enter image description here enter image description here

If not please provide reference for that.

Était-ce utile?

La solution

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.

Here is the reference for it

https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/notifications/

Autres conseils

No, you cannot. The push notification icon is something which you specify in the Icons list of your Info.plist. This cannot be changed for each notification.

iOS displays the small version of your app icon in a banner, so that people can see at a glance which app is notifying them.

Click here to read Apple Notification Guidelines.

You actually can change push notification icon but its recommended that you dont change the push notification icon so that user don't get confused from which app they are getting the notification.

In order to change the push notification icon, on the appicon set you need to change the spotlight icons.

AppIcon -> Change both spotlight icons.

push notification icon change

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top