https://blog.branch.io/apple-killed-uninstall-tracking-on-ios-15/
Post
Replies
Boosts
Views
Activity
No APIs to do that!
enable 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
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
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];