I'm trying to implement the last part in the notification image in apple notifications integration here
This is the C Code in the documentation:
- // Modify the notification content here...
- self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];
- self.contentHandler(self.bestAttemptContent);
+ [[FIRMessaging extensionHelper] populateNotificationContent:self.bestAttemptContent withContentHandler:contentHandler];
I want to convert it to swift code so i can use it in my Project ImageNotification.swift
Judging by the Firebase swift documentation it should probably look something like this:
Messaging.serviceExtension().populateNotificationContent(self.bestAttemptContent, withContentHandler: contentHandler)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With