Skip to content

Developed by HTML Code Play and this plugin is used for share your current own apk through any other sharing applications.

Notifications You must be signed in to change notification settings

merbin2012/cordova-plugin-codeplay-share-own-apk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Play Share apk

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.

Git URL

https://github.com/merbin2012/cordova-plugin-codeplay-share-own-apk

How to Instalation?

Using the Cordova CLI

$ cordova plugin add cordova-plugin-codeplay-share-own-apk

Using the phonegap CLI

$ phonegap local plugin add cordova-plugin-codeplay-share-own-apk

How to Uninstall?

Using the Cordova CLI

$ cordova plugin rm cordova-plugin-codeplay-share-own-apk

Using the phonegap CLI

$ phonegap local plugin rm cordova-plugin-codeplay-share-own-apk

Methods 1

Check is support or not

You 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

Syntax

cordova.plugins.codeplay_shareapk.isSupport(success,fail);

Example

cordova.plugins.codeplay_shareapk.isSupport(success,fail);

function success(result)
{
 console.log(result);
}
function fail(result)
{
 console.log(result);
}

Methods 2

Give your own title

Syntax

cordova.plugins.codeplay_shareapk.openShare(["Title"]);

Example

cordova.plugins.codeplay_shareapk.openShare("Kindly share our app through");

Screenshot

Share own apk text

Give default title

Syntax

cordova.plugins.codeplay_shareapk.openShare();

Screenshot

Share own apk default text

Methods 3

Custom share apk file name

Syntax

cordova.plugins.codeplay_shareapk.openShare(["Title"][,"Apk Name"]);

Example

cordova.plugins.codeplay_shareapk.openShare("Title","My new Apk Name");

Screenshot

Change share apk name

Methods 4

Share any file

Syntax

cordova.plugins.codeplay_shareapk.openShareFile("Title","New_Filename_with_externsion","file_path");

Example

cordova.plugins.codeplay_shareapk.openShareFile("This is title","mytable.html","/storage/emulated/0/HTMLCodePlayTemp.html")

Screenshot

Share file popup Share in whatsapp

Methods 5

Copy given file to specified directory

Copy the given source file to the given destination directory.

Syntax

cordova.plugins.codeplay_shareapk.copyFile(sourceFilePath,distinationFolderPath,FileNameWithExternsion);

Example

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");

Support Platfrom

  • Android

Our Apps

https://play.google.com/store/apps/details?id=com.HTML.AngularJS.Codeplay

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

About

Developed by HTML Code Play and this plugin is used for share your current own apk through any other sharing applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published