Error while sending message from WKWebView to the {N} application


Hi all!

I again about of the nativescript-vkwebview plugin. I trying from a webview send a message to the application, but after line window.webkit.messageHandlers.vkMessenger.postMessage('message'); app crashes. Gives this error which can be understood by Objective-C or Swift developers:

-[TNSDictionaryAdapter userContentController:didReceiveScriptMessage:]: unrecognized selector sent to instance 0x60800003fe40
May 24 00:51:41 Akmals-iMac[4135] (UIKitApplication:org.nativescript.demo[0xf454][5054]): Service exited due to Segmentation fault: 11

That line is called from here:

<!doctype html>
        body {
            background-color: #00aafc;
            font-family: monospace;
            font-size: 48px;
            text-align: center;
            color: white;
        var body, windowKeys;

        function init() {
            body = document.getElementsByTagName('body')[0];
            windowKeys = [];

        function red() {
            try {
                windowKeys.push('Your message has been sent!');
            } catch (err) {
                windowKeys.push('Error: ' + err.toString());

            setTimeout(function () {
       = 'black';
       = 'white';
                body.innerText = windowKeys.join('\n');
            }, 500);
<body onload="init()">
    <p>WKWebView is loaded!</p>