SDKsiOS
Send a message without SDK-managed upload
Send a message that already contains remote resource URLs with OpenIM iOS SDK.
Use sendMessageNotOss:... when your application has already uploaded the resource and created a URL-based media message. This avoids entering the SDK's object-storage upload flow again.
[[OIMManager manager] sendMessageNotOss:urlMessage
recvID:receiverUserID
groupID:nil
isOnlineOnly:NO
offlinePushInfo:nil
onSuccess:^(OIMMessageInfo *sent) {
if (sent != nil) [messageStore upsert:sent];
}
onProgress:nil
onFailure:nil];One-to-one and group targets are mutually exclusive. Resource URLs, sizes, media types, dimensions, and durations must come from actual upload results. Handle the success callback and the remote receiving delegate as separate stages.
Was this page helpful?