I noticed the following problem, when I load a local html file like "file:///C:/Users/elvis/Desktop/example/index.html" the chrome functions are not available, but when I load the same file hosted by a server "http://localhost/index.html" the functions is available.
I think it's the same as the way unigui loads files, because the "chrome.runtime.sendMessage" function is not loaded in unigui