SDKsiOSEnterprise
Save a local transcript
Save a transcript in the current device’s message extension field with OpenIM iOS SDK.
OIMSoundElem has no transcript property. Parse the existing localEx, merge the transcript into your application's namespace, and then save it:
NSString *localEx = [self mergeTranscript:transcript intoLocalEx:message.localEx];
[[OIMManager manager] setMessageLocalEx:conversationID
clientMsgID:message.clientMsgID
localEx:localEx
onSuccess:nil
onFailure:nil];If the existing value is not a valid JSON object, stop or migrate it according to the product's policy; do not overwrite it silently. Success modifies the current device only. It does not synchronize the transcript to another user or device or trigger a message event.
Was this page helpful?