<Page loaded="pageLoaded" xmlns:nativechat="@progress-nativechat/nativescript-nativechat">
<nativechat:NativeChat config="{{ nativeChatConfig }}"/>
</Page>
exports.pageLoaded = function (args) {
var page = args.object;
page.bindingContext = {
nativeChatConfig: {
botId: '5acddd9715e7187c15f3fc28',
channelId: 'f91f065c-4079-4fa9-8860-b893e2b81696',
channelToken: '0570f9a5-6c0e-4b77-b06d-20ce6d5c56d8',
user: {
name: 'John Smith'
},
session: {
clear: true,
userMessage: 'Book a doctor',
context: {
company: 'Progress Software',
phone: '555 555 5555'
}
}
}
}
};
chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
10-29 13:37:39.870 3747 3747 I cr_BrowserStartup: Initializing chromium process, singleProcess=false
chromium: [ERROR:devtools_http_handler.cc(292)] Cannot start http server for devtools. Stop devtools.
tns plugin add @progress-nativechat/nativescript-nativechattns run androidActual: The demo app will not work:
Expected: The demo app to be working as expected