diff --git a/framework/src/com/phonegap/api/PluginManager.java b/framework/src/com/phonegap/api/PluginManager.java index 14e24493..db10d637 100755 --- a/framework/src/com/phonegap/api/PluginManager.java +++ b/framework/src/com/phonegap/api/PluginManager.java @@ -90,6 +90,11 @@ public final class PluginManager { pluginName = xml.getAttributeValue(null, "name"); //System.out.println("Plugin: "+name+" => "+value); this.addService(pluginName, pluginClass); + + // Create plugin at load time if attribute "onload" + if ("true".equals(xml.getAttributeValue(null, "onload"))) { + this.getPlugin(pluginName); + } } else if (strNode.equals("url-filter")) { this.urlMap.put(xml.getAttributeValue(null, "value"), pluginName); }