Kommunicate-io / Kommunicate-Flutter-Plugin

A flutter plugin for Kommunicate customer support live chat.
BSD 3-Clause "New" or "Revised" License
16 stars 23 forks source link

Added method for getting channel key or conversation ID #108

Closed AbhijeetRanjan308 closed 10 months ago

AbhijeetRanjan308 commented 10 months ago

Summary

Function


/// Just need to pass either 'clientChannelKey' or 'channelID' 
dynamic objc = {'clientChannelKey': 'pKC6riItFm7eMmogrJ2gz3LvjrD9nwaU', 'channelID': 95713948}   

KommunicateFlutterPlugin.getConversarionIdOrKey(objc).then((value) {
                     print('User Channel id : $value');
                    }
                  ).catchError((error) {
                      print('Error in channel user details : ' +
                          error.toString());
                    });