Post

Replies

Boosts

Views

Activity

Reply to How to show in the subtitle of the Communication Notification?
look Of the previous question https://developer.apple.com/forums/thread/691953 // recipients count > 1 let incomingMessagingIntent = INSendMessageIntent(recipients: [mePerson,senderPerson], outgoingMessageType: .unknown, content: "Test", speakableGroupName: INSpeakableString(spokenPhrase: "Test Group"), conversationIdentifier: "Test Group", serviceName: "Test", sender: senderPerson, attachments: nil) // ParameterNamed is speakableGroupName incomingMessagingIntent.setImage(avatar, forParameterNamed: \.speakableGroupName) code-block
Oct ’21
Reply to How to show group name in the subtitle of the Communication Notification?
change your code to: // recipients count > 1 let incomingMessagingIntent = INSendMessageIntent(recipients: [mePerson,senderPerson], outgoingMessageType: .unknown, content: "Test", speakableGroupName: INSpeakableString(spokenPhrase: "Test Group"), conversationIdentifier: "Test Group", serviceName: "Test", sender: senderPerson, attachments: nil) // ParameterNamed is speakableGroupName incomingMessagingIntent.setImage(avatar, forParameterNamed: \.speakableGroupName) code-block
Oct ’21
Reply to Not Seeing iOS 15 Notification Avatars
you can try INPerson *person2 = [[INPerson alloc] initWithPersonHandle:personHandle2                           nameComponents:nameComponents2                             displayName:@"displayName2"                                image:image                          contactIdentifier:@"contactIdentifier2"                          customIdentifier:@"customIdentifier2"                                isMe:YES                           suggestionType:INPersonSuggestionTypeNone];                 INPerson *person = [[INPerson alloc]initWithPersonHandle:personHandle                             nameComponents:nameComponents                               displayName:@"displayName1"                                  image:image                            contactIdentifier:@"contactIdentifier1"                            customIdentifier:@"customIdentifier1"                                  isMe:NO                             suggestionType:INPersonSuggestionTypeNone];           INSpeakableString *speakableGroupName = [[INSpeakableString alloc] initWithSpokenPhrase:@"speakableGroupName"];           INSendMessageIntent *sendMessageIntent = [[INSendMessageIntent alloc]               initWithRecipients:@[person2]               outgoingMessageType:INOutgoingMessageTypeOutgoingMessageText               content:nil               speakableGroupName:speakableGroupName               conversationIdentifier:@"threadId"               serviceName:@"serviceName"               sender:person               attachments:nil];
Oct ’21