How to Change How a Remote Notification Is Presented Before Presentation

iOS Push notification using Firebase

Currently there is no way in iOS to do that. Please refer to this answer for more details How to change how a remote notification is presented before presentation?

Changing the contents of a pushed notification

There is no way to change the content of push notifications because the system presents it to the user before informing the application.

If you want to have more control over what your notification should look like, you should use Rich Push Notification (RPN). With RPN, notification presentation is up to you (app side). You can custom text messages, adding images/audios/videos/gifs, and more. But it requires a little extra work.

You may also try to customize the appearance of the notification by using the Notification Content Extension but it does not allow you to customize the initial banner (you need to tap the initial banner to see the full notification interface)

https://developer.apple.com/documentation/usernotificationsui/customizing_the_appearance_of_notifications



Related Topics



Leave a reply



Submit