First of all, I use Chromium browser, not Google Chrome.
But the problem is when I click the button of my extension, I get
"Specified native messaging host not found."
error.
Here is my
com.cagatay.chromium.updater.json file:
{
"name" : "com.cagatay.chromium.updater",
"description" : "Bu eklenti, Chromium'un g\u{FC}ncelle\u{15F}tirmelerini denetler ve y\u{FC}kler.",
"path" : "D:\\deneme.exe",
"type" : "stdio",
"allowed_origins" :
[
"chrome-extension://alahmndbpjaieilooflfaikkoghmboll/"
]
}
Here is my
background.js file:
var sonuc = null;
function fnMesajiAl(alinanMesaj)
{
sonuc = JSON.stringify(alinanMesaj);
}
document.addEventListener
(
'DOMContentLoaded',
function()
{
var guncellestirmeleriDenetlemeDugmesi = document.getElementById('Image2');
guncellestirmeleriDenetlemeDugmesi.addEventListener
(
'click',
function()
{
window.close();
var uygulamayaBaglan = chrome.runtime.connectNative("com.cagatay.chromium.updater");
uygulamayaBaglan.postMessage('guncellestirmeleriDenetle');
uygulamayaBaglan.onMessage.addListener(fnMesajiAl);
if(sonuc === 'yok')
{
alert('En güncel sürümü kullanıyorsunuz!');
}
}
);
}
);
What I have tried:
And my json file is located at: <pre>"D:\Chromium Güncelleştirici Eklenti Projesi\Data\com.cagatay.chromium.updater.json"
I have added this json path to almost everywhere in regedit.
But I still get this error.
So, what should I do?