Skip to content

Instantly share code, notes, and snippets.

@Natgho
Created September 24, 2020 06:51
Show Gist options
  • Save Natgho/a12060cd30451f4c1bf72e3381f77e24 to your computer and use it in GitHub Desktop.
Save Natgho/a12060cd30451f4c1bf72e3381f77e24 to your computer and use it in GitHub Desktop.
quick-app-with-push-kit-notification-handler
push.subscribe({
success: function(data) {
console.log("push.subscribe succeeded, result data=" + JSON.stringify(data));
},
fail: function(data, code) {
console.log("push.subscribe failed, result data=" + JSON.stringify(data) + ", code=" + code);
},
complete: function() {
console.log("push.subscribe completed");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment