1.0.1 • Published 6 years ago

cordova-plugin-bluetooth-app-share v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Share App Cordova Plugin

Allows you to share your cordova app's .apk file via bluetooth.

It looks for the current app's apk file, renames it to the name provided and then sends it via bluetooth to another phone.

It's useful in places where access to internet is limited. Originally created for the Emoyeni app which works completely offline.

Link to React Native version here

Read more about the plugin on my website

Install

cordova plugin add cordova-plugin-bluetooth-app-share

API

// Using cordova
window.cordova.plugins.shareapp.share(string: fileName)

// Using Ionic 
window['cordova'].plugins.shareapp.share(string: fileName)

Note fileName is required.

Example

// Using cordova
window.cordova.plugins.shareapp.share("MyApp")

// Using Ionic 
window['cordova'].plugins.shareapp.share("MyApp")