https://github.com/aakashrajni/phonegap-shareapp-plugin
A simple intent plugin to share your app link to other platform
https://github.com/aakashrajni/phonegap-shareapp-plugin
android intent plugin simple
Last synced: 2 months ago
JSON representation
A simple intent plugin to share your app link to other platform
- Host: GitHub
- URL: https://github.com/aakashrajni/phonegap-shareapp-plugin
- Owner: aakashrajni
- Created: 2019-05-28T14:38:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T09:06:34.000Z (almost 6 years ago)
- Last Synced: 2024-12-26T13:12:06.163Z (4 months ago)
- Topics: android, intent, plugin, simple
- Language: Java
- Homepage: https://www.npmjs.com/package/share-app-plugin
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# share-app-plugin
A simple plugin to share your app link in other social Network apps for phonegap/cordova android platform project
## Getting Started
Add the plugin to project using npm
npm install --save share-app-plugin
or else you can install using plugman (plugman always helps you)
plugman install --platform android --project (path/of/your/project) --plugin (plugin/file/path or github link)
### Prerequisites
* Node
* npm
* git
* phonegap
* Android studio and SDK### Using the plugin
SYNTAX
```
Share.addItem(foo,bar,successCallback,errorCallback);
```where
foo is the [Type](https://developer.android.com/guide/components/intents-filters#ExampleSend) of intent like "text/plain"
bar is the 'String' to be shared in other social networks.
successCallback can be something like / function(){console.log("Hybrid Bridge Success")} /
errorCallback ca be something like / function(e){console.log("Hybrid Bridge Error" + e)} /EXAMPLE
```
Share.addItem("text/plain","check my app it is inevitable: app/link/here",function(){console.log("Hybrid Bridge Success")},function(e){console.log("Hybrid Bridge Error" + e)});
```## Built With
* [Phonegap](https://phonegap.com/) - The framework used
* [Plugman](https://cordova.apache.org/docs/en/latest/plugin_ref/plugman.html) - Plugin Management
* [cordova-android](https://cordova.apache.org/docs/en/latest/guide/platforms/android/) - Made for android platform## Authors
* **Aakash Rajni** - *Initial work* - [AakashRajni](https://github.com/aakashrajni)
See also the list of [contributors](https://github.com/aakashrajni/phonegap-shareapp-plugin/graphs/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* Hat tip to anyone whose code was used
* Inspiration
* etc