Chat History

Enable Chat History#

The chat history feature allows us to retrieve chat history every time you log into the newly acquired device. The feature stores chat history securely and provides access to the users whenever they need it. This ensures that users can access the same conversation thread across devices without any data loss.

void main(){
Mirrorfly.initializeSDK(
licenseKey: 'Your_Mirrorfly_Licence_Key',
iOSContainerID: 'Your_iOS_app_Group_id',
chatHistoryEnable: true,
flyCallback: (FlyResponse response) {
runApp(const MyApp());
}
);
}

ChatHistorySetup

ArgumentTypeDescriptionType
chatHistoryEnablebooltrue To enable chat history and false for normal chat
flyCallbackFlyResponsecallback to observe the action status
caution

If the Chat history feature is not available on your plan, it will not work.