I have an imessage extension app that works fine except on the first send to a group.
iOS 14.4 multiple devices 8, 8plus, 10...
Xcode 12.4
The code goes straight from the send closure (success) to didResignActive. The app is supposed to stay active. There is no dismiss called anywhere. I've debugged w/ attached device stepped through the code, and it goes straight from the log line to didResignActive.
If I launch the app again on the same group it works fine. The app only fails if I start a new group conversation, then click on the app in tray, and send is called.
note: this only happens to group sends, and only on the first time a group is created.
thisConversation.send(message) { error in
if let error = error {
os_log("submitMessage(%@): initial send error: %@", log: .default, type: .debug, type, error.localizedDescription)
} else {
os_log("submitMessage(%@): initial send success!", log: .default, type: .debug, type)
}
}
Edit: Just an update... I was told to file a bug report for this (which I did).
I also supplied a video which shows how to reproduce the bug.
This is the message sent back from support...
I was able to create a test app that reproduces this problem, with what I think is the minimal amount of code to demonstrate. Hope this invites a solution!