Skip to content

Instantly share code, notes, and snippets.

@celiovasconcelos
Last active June 11, 2018 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celiovasconcelos/2867eb28b05c503f87d10ce0fa4ee006 to your computer and use it in GitHub Desktop.
Save celiovasconcelos/2867eb28b05c503f87d10ce0fa4ee006 to your computer and use it in GitHub Desktop.
pushlink-cordova
//this new start API was introduced in pushlink-cordova-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
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment