Migration guide
MirrorFly Chat SDK Version 2 has introduced major send message method changes to streamline the code structure and enhance its scalability. This guide explains step by step guide for migrating to Version 2 from Version 1.
#
Send Text MessageInstead of getting params as method parameters, we have introduced single object param with all input data. To reduce the complexity in getting params.
Step 1: Params of the below method were updated from Version 2.
Step 2: Update the following method with the new updated params in the code.
#
Send Media/File MessagesWe have introduced common method to send all type media/file messages. To reduce the integration time.
Step 1: Below methods were deprecated from Version 2, Remove the following method from the code.
Step 2: Update to the following method with the latest parameters.
Here, based on the messageType
SDK will determine the type of message and process it.
Refer Here to know more about Send File Message method.
#
Get Chat MessagesInstead of getting params as getChatMessages method parameters, we have introduced single object param with all input data. To reduce the complexity in getting params.
Step 1: Params of the below method were updated from Version 2.
Step 2: Update the following method with the new updated params in the code.
Refer Here to know more about Get Chat Messages method.
#
Get Media MessagesInstead of getting params as getMediaMessages method parameters, we have introduced single object param with all input data. To reduce the complexity in getting params.
Step 1: Params of the below method were updated from Version 2.
Step 2: Update the following method with the new updated params in the code.
Refer Here to know more about Get Media Messages method.