File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
sample/ios/NotificationService Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments