cordova-plugin-pixlive
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"name": "cordova-plugin-pixlive", | ||
@@ -19,4 +19,3 @@ "cordova_name": "PixLive", | ||
], | ||
"engines": [ | ||
{ | ||
"engines": [{ | ||
"name": "cordova", | ||
@@ -23,0 +22,0 @@ "version": ">=6.0.0" |
@@ -178,1 +178,21 @@ # Cordova plugin for PixLive SDK [https://github.com/vidinoti/cordova-plugin-PixLive](https://github.com/vidinoti/cordova-plugin-PixLive) | ||
``` | ||
## How to contribute and create a new release | ||
* Edit the plugin as needed | ||
* Update the version number in `plugin.xml` and `package.json` | ||
* Commit and push the changes to GitHub | ||
* Create a new release from GitHub interface (releases > Draft a new release) | ||
Publish a new release in npm registry: | ||
* if necessary, `npm login` | ||
* `npm publish` | ||
## Release note | ||
### Version 1.6.0 - 6 April 2018 | ||
requires PixLive SDK >= 6.2.0 | ||
* add new function for synchronizing with tours (see `PixLive.synchronizeWithTours`) |
@@ -214,2 +214,26 @@ var exec = require('cordova/exec'); | ||
/** | ||
* Synchronize the app with the linked PixLive Maker account http://pixlivemaker.com | ||
* Use this method if you want to synchronize with tags and tours. If you need only tags, see the "synchronize" function. | ||
* | ||
* @param {string[]} tags - An array of tags to synchronize with (can be left empty) example: | ||
* <ul> | ||
* <li> [] if you do not want to use tags, all the contexts from the linked PixLive Maker account will be synchronized | ||
* <li> ['tag1','tag2'] to synchronize with the contexts that are tagged with tag1 or tag2 | ||
* <li> [['tag1','tag2'], 'tag3'] to synchronize with the contexts that are tagged with (tag1 and tag2) or tag3 | ||
* </ul> | ||
* Specific languages can be attributated to PixLive Maker content, to synchronize your app with a specific language | ||
* use the tag: 'lang_{{iso_code_of_the_language}}' for example: | ||
* <ul> | ||
* <li> ['lang_fr'] to sychronize with all the french contents | ||
* <li> [['tag1','lang_en'], ['tag2','lang_en']] to synronize with the english contents tagged with tag1 or tag2 | ||
* </ul> | ||
* @param {number[]} tours - An array of tour ID to synchronize with. | ||
* @param {callback} success - success callback | ||
* @param {callback} error - error callback | ||
*/ | ||
PixLive.synchronizeWithTours = function(tags, tours, success, error) { | ||
exec(success, error, "PixLive", "synchronize", [tags, tours]); | ||
}; | ||
/** | ||
* Will show the list of beacons notifications previously received | ||
@@ -216,0 +240,0 @@ * @param {callback} success - success callback |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
329753
5666
198