Created
September 24, 2020 06:51
-
-
Save Natgho/a12060cd30451f4c1bf72e3381f77e24 to your computer and use it in GitHub Desktop.
quick-app-with-push-kit-notification-handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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