Skip to content

nativescript-nativechat is not working on android emulators #9

Description

@vhristov5555
  1. Create new javascript app
  2. Add nativescript-nativechat tns plugin add @progress-nativechat/nativescript-nativechat
  3. Add demo code from https://www.npmjs.com/package/@progress-nativechat/nativescript-nativechat:
<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'
                }
            }
        }
    }
};
  1. Run the app on the emulator tns run android
    Actual: The demo app will not work:
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.

Expected: The demo app to be working as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions