Developed by HTML Code Play and this plugin is used for share your current own apk through any other sharing applications for your cordova applications.
https://github.com/merbin2012/cordova-plugin-codeplay-share-own-apk$ cordova plugin add cordova-plugin-codeplay-share-own-apk
$ phonegap local plugin add cordova-plugin-codeplay-share-own-apk
$ cordova plugin rm cordova-plugin-codeplay-share-own-apk
$ phonegap local plugin rm cordova-plugin-codeplay-share-own-apkYou must check is this support or not then enable the share button, some Android version doesn't support eg) Android 4.4, Android 5.0
cordova.plugins.codeplay_shareapk.isSupport(success,fail);
cordova.plugins.codeplay_shareapk.isSupport(success,fail);
function success(result)
{
console.log(result);
}
function fail(result)
{
console.log(result);
}
cordova.plugins.codeplay_shareapk.openShare(["Title"]);
cordova.plugins.codeplay_shareapk.openShare("Kindly share our app through");
cordova.plugins.codeplay_shareapk.openShare();
cordova.plugins.codeplay_shareapk.openShare(["Title"][,"Apk Name"]);
cordova.plugins.codeplay_shareapk.openShare("Title","My new Apk Name");
cordova.plugins.codeplay_shareapk.openShareFile("Title","New_Filename_with_externsion","file_path");
cordova.plugins.codeplay_shareapk.openShareFile("This is title","mytable.html","/storage/emulated/0/HTMLCodePlayTemp.html")
cordova.plugins.codeplay_shareapk.copyFile(sourceFilePath,distinationFolderPath,FileNameWithExternsion);
var sourcePath='/storage/emulated/0/test.jpg';
var distinationPath="/storage/emulated/0/Android/data/com.xxx.xxx/files/";
cordova.plugins.codeplay_shareapk.copyFile(sourcePath,distinationPath,"myfile.jpg");
- Android
https://play.google.com/store/apps/details?id=sql.code.play
https://play.google.com/store/apps/details?id=html.editor.codeplay
https://play.google.com/store/apps/details?id=php.code.play
https://play.google.com/store/apps/details?id=cordova.code.play
https://play.google.com/store/apps/details?id=com.kids.learning.master