Below is the code I'm using
SocialSharing.js
function SocialSharing() {
}
SocialSharing.prototype.available = function (callback) {
cordova.exec(function (avail) {
callback(avail ? true : false);
}, null, "SocialSharing", "available", []);
};
SocialSharing.prototype.share = function (message, subject, image, url, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "SocialSharing", "share", [message, subject, image, url]);
};
SocialSharing.install = function () {
if (!window.plugins) {
window.plugins = {};
}
window.plugins.socialsharing = new SocialSharing();
return window.plugins.socialsharing;
};
cordova.addConstructor(SocialSharing.install);
detailView.js
calling share plugin from my webpage
window.socialShare.share("test");
Config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "sd"
id = "io.cordova.helloCordova"
version = "2.7.0">
<name>HTML Displayer</name>
<description>
HTML Displayer
</description>
<author href="" email="">
Modulaity Team
</author>
<access origin="*"/>
<content src="index.html" />
<preference name="loglevel" value="DEBUG" />
<!--
<preference name="splashscreen" value="resourceName" />
<preference name="backgroundColor" value="0xFFF" />
<preference name="loadUrlTimeoutValue" value="20000" />
<preference name="InAppBrowserStorageEnabled" value="true" />
<preference name="disallowOverscroll" value="true" />
-->
<!-- This is required for native Android hooks -->
<feature name="App">
<param name="android-package" value="org.apache.cordova.App" />
</feature>
<feature name="SocialSharing">
<param name="android-package" value="com.bnppf.ssc.imb.sf.shell.htmldisplayer.plugins.SocialShare" />
</feature>
<feature name="NetworkStatus">
<param name="android-package" value="org.apache.cordova.NetworkManager" />
</feature>
</widget>
In android 4.4, Social sharing is working fine, but in Android 2.3 to android 4.0. I am getting the above popup...
What am I doing wrong?