https://github.com/vstirbu/promisesplugin
ES6-Promises polyfill for Cordova/PhoneGap
https://github.com/vstirbu/promisesplugin
Last synced: 5 months ago
JSON representation
ES6-Promises polyfill for Cordova/PhoneGap
- Host: GitHub
- URL: https://github.com/vstirbu/promisesplugin
- Owner: vstirbu
- License: mit
- Created: 2014-07-30T21:26:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-12-27T17:58:28.000Z (almost 8 years ago)
- Last Synced: 2025-04-29T08:45:14.453Z (5 months ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 28
- Watchers: 5
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PromisesPlugin
ES6-Promises polyfill for Cordova/PhoneGap
# Motivation
The web view components on Cordova supported platforms lack suport for ES6 Promise. A polyfill library bundled with the plugin fixes the limitation. However, as more plugin use promises, the application developer using these plugins will end up with multiple promise polyfill libraries.
This plugin attempts to fix this situation by providing a Promise polyfill so that other plugins can rely on this functionality.
# How to use
Configure your plugin's plugin.xml by adding this dependency:
```
```
Cordova CLI takes care to install PromisesPlugin automatically:
```
$ cordova plugins add {yourPlugin}> Installing "{yourPlugin}" for {platform}
> Installing "es6-promise-plugin" for {platform}
```This is all. ```window.Promise``` is available for use in your plugin.
# Credits
This plugin wraps [es6-promise](https://github.com/jakearchibald/es6-promise) in a Cordova/PhoneGap friendly way.
# License
The plugin is available under MIT license.