I have browser plugin built using NPAPI Lib for Safari and firefox for Mac System.Now I have newer version plugin and I am asking user to download new plugin if user doesn't have latest plugin.
after downloading the plugin it is not getting loaded and I have to close the browser and restart it.
I am doing navigator.plugin.refresh(false)
at regular interval but no success.I can't reload the page at this moment because I am still getting old plugin version.
If go and kill the plugin in activity monitor and restart the browser it is showing new plugin version. Please help me on this.
Edited:
This method is called every 3 sec
function InitIEPlugin() {
plugin = navigator.plugins["MyPlug-In"];
if (plugin) {
remoteEngine = document.getElementById('MyPlugin');
if (remoteEngine) {
isMyPluginInstalled = true;
var version = remoteEngine.getAttributeByKey("plugin_version");
if ((ua.indexOf('Intel Mac OS X 10.5') >= 0) || (ua.indexOf('Intel Mac OS X 10_5') >= 0)) {
//isHarmonyPluginUpgradeRequired = CheckVersionOfPlugin(version);
}
else {
isMyPluginUpgradeRequired = CheckVersionOfMacPlugin(version);
if (isMyPluginUpgradeRequired == true)
isMyPluginInstalled = false;
}
}
}
}