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/
8 stars 12 forks source link

Error com.zoho.livechat.android.config.DeviceConfig.getPreferences #28

Closed feleko closed 3 years ago

feleko commented 3 years ago

Hey, I got fatal error: Fatal Exception: java.lang.NullPointerException. Unable to start application. Wykorzystuje wersje 4.1.0 Screenshot 2021-09-22 at 11 17 03

Angu-G commented 3 years ago

Hello @feleko, This issue happens when registerVisitor() API is triggered before init() API gets completed - We are already working on these kind of issues. Can you please confirm for me on that? The following syntax would be handy. Please have a try on this too.

ZohoSalesIQ.initWithCallback(appKey, accessKey, (success) => {
    if (success) {
        ZohoSalesIQ.registerVisitor("registerID");
    } else {

    }
});
feleko commented 3 years ago

Thanks for your help.