zoho / SalesIQ-Mobilisten-ReactNative

Your mobile app's ideal live chat partner. Power up your mobile App with the SalesIQ Mobilisten SDK for React-Native.
https://mobilisten.io/
9 stars 11 forks source link

Old conversations not visible after fresh install of APK #53

Closed Ramanpreet6262 closed 1 year ago

Ramanpreet6262 commented 1 year ago

Old conversations don't show up if I uninstall the existing APK (with Zoho SalesIQ SDK integrated) and install another version of the same APK.

I guess conversations are stored in shared preferences of Android, not sure if functionality is implemented to bring back old conversations for new user using some API, etc. If it is implemented then there is some bug in that.

Please check once.

bhahirathan-mb-11956 commented 1 year ago

Hi @Ramanpreet6262 ,

Thank you for writing us. Please verify if you've used the registerVisitor( ) method after the SDK is initialized. I have attached the below snippet for reference.

import { Platform } from 'react-native';
import { ZohoSalesIQ } from 'react-native-zohosalesiq-mobilisten';

var appKey;
var accessKey;

if (Platform.OS === 'ios') {
    appKey = "ios_appKey";
    accessKey = "ios_accessKey";
} else {
    appKey = "android_appKey";
    accessKey = "android_accessKey";
}

ZohoSalesIQ.initWithCallback(appKey, accessKey, (success) => {
    if (success) {
         ZohoSalesIQ.registerVisitor('unique_visitor_id');      
    } else {
        // your code to handle initialization failure
    }
});

Note: The visitor's unique ID should match this regex pattern, "^[A-Za-z0-9_@.\-]{1,100}$".

The conversations are stored based on the unique ID of the registered visitor.

I hope this helps. If the issue persists, please feel free to mail us at support@zohosalesiq.com along with the Github issue ID.

Regards, Bhahirathan M

Ramanpreet6262 commented 1 year ago

Thanks, @DavidBhahirathan. I have not used the register and unregister visitor flow. Will add that. And update in some time if it worked and then we can close the issue.

bhahirathan-mb-11956 commented 1 year ago

Hi @Ramanpreet6262 ,

As there is no recent activity from your side, we're closing this issue. You can reopen this again anytime. Meanwhile, please check out latest version.

For further queries, please feel free to write us at support@zohosalesiq.com. We will be happy to assist you.

Best regards, Bhahirathan M.