Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public requestSubscription() {
  2. this.swPush.requestSubscription({
  3. serverPublicKey: environment.vapidPublicKey
  4. })
  5. .then(subscription => {
  6. return this.save(subscription);
  7. })
  8. .catch(err => {
  9. console.log('Could not subscribe to notifications', err);
  10. });
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement