Skip to content

Commit a369813

Browse files
committed
chore: update sample notification title format
1 parent 45496ac commit a369813

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sample/ios/NotificationService/NotificationService.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ @implementation NotificationService
2020
- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {
2121
self.contentHandler = contentHandler;
2222
self.bestAttemptContent = [request.content mutableCopy];
23-
self.bestAttemptContent.title = [NSString stringWithFormat:@"[RN]%@", self.bestAttemptContent.title];
23+
if (self.bestAttemptContent.title) {
24+
self.bestAttemptContent.title = [NSString stringWithFormat:@"[RN]%@", self.bestAttemptContent.title];
25+
} else {
26+
self.bestAttemptContent.title = @"[RN]SendbirdUIKitSample";
27+
}
2428
self.contentHandler(self.bestAttemptContent);
2529
[NotifeeExtensionHelper populateNotificationContent:request
2630
withContent: self.bestAttemptContent

0 commit comments

Comments
 (0)