chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

Error in Creating network adapter @ documentation

Open habeebrahmanpt opened this issue 9 years ago • 3 comments

BFirebaseNetworkAdapter adapter = new BFirebaseNetworkAdapter(getApplicationContext()); // Create new network adapter is getting error

    BChatcatNetworkAdapter adapter = new BChatcatNetworkAdapter(getApplicationContext());

// Create new network adapter

habeebrahmanpt avatar Feb 07 '17 20:02 habeebrahmanpt

Hello,

Just wondering what the problem is that you are trying to address? Is it a request to better define the difference between the Firebase and Chatcat network adapters?

-- Kyle

kykrueger avatar Feb 08 '17 17:02 kykrueger

Hello,

If you have not had any luck with initializing the SDK's network adapter, I reccomend you look at how we launch the demo app. Particularly these lines

        // Android chat SDK init!
        ChatSDKUiHelper.initDefault();
        BNetworkManager.init(getApplicationContext());
        // Adapter init.
        BChatcatNetworkAdapter adapter = new BChatcatNetworkAdapter(getApplicationContext());
        BNetworkManager.sharedManager().setNetworkAdapter(adapter);

kykrueger avatar Feb 11 '17 23:02 kykrueger

We have now updated some of our Chat SDK Android documentation. Checkout the wiki page here and then read the Adding Chat SDK to your custom project tutorial. This includes a video showing you which code you need to add and where exactly to add it.

Let us know if you continue to have issues

simonsmiley64 avatar Feb 27 '17 03:02 simonsmiley64