6.1.0 • Published 11 months ago

pushlink-cordova-plugin v6.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
11 months ago

PushLink / Cordova plugin Build Status

Source code for https://www.npmjs.com/package/pushlink-cordova-plugin

Installation

$ cordova plugin add pushlink-cordova-plugin

Compatibility Matrix

pushlink-androidpushlink-cordova-pluginComments
5.6.06.1.0Works on Android 12, 13 and 14. Pushlink strategies are now static (e.g. Pushlink.FRIENDLY_POPUP)
5.5.36.0.3Works on Android 8. CUSTOM strategy not included.
5.5.26.0.2Works on Android 7. CUSTOM strategy not included.
5.5.06.0.1Fixed for Android 6
5.5.05.5.0.
5.4.45.4.4.

Usage

The plugin exposes a global window.PushLink object, so there is no need to instantiate an object.

On your main .js file, you can call:

//this new start API was introduced in pushlink-cordova-plugin-6.0.1

var successCallback = function success() {
  console.log("PushLink started successfully");
};
var errorCallback = function error() {
  console.log("An error occurred.");
};

PushLink.start({
  apiKey: "api-key",
  deviceId: "device-id",
  successCallback: successCallback,
  errorCallback: errorCallback,
});

Troubleshooting

Getting successCallback called doesn't mean that all is done. If you don't see your device in the installations tabs of the web administration, maybe there is a misconfiguration or something else.

Use adb logcat | grep PUSHLINK to check what's going on. If you can't solve the problem by yourself, please contact the support.

Help & Support

Always feel free to drop a line to support at pushlink dot com or visit our support.

Users are always welcome to contribute with issues and pull requests

6.1.0

11 months ago

6.0.3

7 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.5.0-2

8 years ago

5.5.0-1

8 years ago

5.5.1

8 years ago

5.5.0

9 years ago

5.4.4

9 years ago