Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public requestSubscription() {
- this.swPush.requestSubscription({
- serverPublicKey: environment.vapidPublicKey
- })
- .then(subscription => {
- return this.save(subscription);
- })
- .catch(err => {
- console.log('Could not subscribe to notifications', err);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement