Limit device registration to customers only
This commit is contained in:
parent
2d58603444
commit
5911c4d8ee
2 changed files with 5 additions and 4 deletions
|
@ -20,7 +20,6 @@ export class MessagingService {
|
|||
|
||||
requestPermission() {
|
||||
this.angularFireMessaging.requestToken.subscribe((token) => {
|
||||
console.log("Device token: " + token);
|
||||
this.api.addDeviceToken({'token': token, 'email': localStorage.getItem('email')}).subscribe(
|
||||
result => {
|
||||
console.log("Device registered successfully!");
|
||||
|
|
Reference in a new issue