initChatSDK method
Initialize the Zendesk Chat SDK
accountKey
the zendesk created account key, unique by organization
appId
the app ID created on Zendesk Panel
Implementation
Future<void> initChatSDK(
String accountKey,
String appId,
) async {
if (_chatInitialized) return;
Map arguments = {
'accountKey': accountKey,
'appId': appId,
};
try {
await channel.invokeMethod('init_chat', arguments);
_chatInitialized = true;
} catch (e) {
print(e);
}
}