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
Pure Swiftui Login, Signup, Register Flow, Is It Possible
Uitextfield Starting Cursor Position Is Wrong
Your Credentials Do Not Allow Access to This Resource Twitter API Error
Wkwebview Decidepolicyfornavigationaction Being Call After the Long Press Recogniser Ended
Generics Type Constraint VS Inheritance
How to Catch Accessibility Focus Changed
Array Element Checking in Swift
How to Parse a Iso 8601 Duration Format in Swift
Apply Nspredicate on [(String, Array<String>)]
Change Selected Row Label Color in Picker View Swift 1.2
Nsexceptionallowsinsecurehttploads Not Working for Ip Addresses
Scaling Current Dot of Uipagecontrol and Keeping It Centered
Cannot Access Appdelegate While Testing Xcode Project
Square Video Using Avfoundation
Tableview with Searchcontroller - Deinit Not Called
Uicollectionviewcontroller Error in Swift 3.0: Must Be Initialized with a Non-Nil Layout Parameter
Module Compiled with Swift 5.1.2 Cannot Be Imported by the Swift 5.2.4 Compiler