Search code examples
iosfirebasepush-notificationfirebase-cloud-messagingapn

iOS Push notification using Firebase


I am working in a project where I need to show notifications fired by Firebase. Everything works fine with the send and receive flow. But I need to customise the notification before showing it, i.e., when the app is in background. Because the message I receive from our server it's already Base64 encoded. And therefore the notification displays a long string that my petrify the users. Is there any delegate or something which I can use to modify the received data before presenting it when the app is in background?


Solution

  • 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?