MOBILE-2319 push: Fix pushID of the device
parent
d8be7efbc6
commit
8dc255ea20
|
@ -326,8 +326,8 @@ export class AddonPushNotificationsProvider {
|
|||
this.onMessageReceived(notification);
|
||||
});
|
||||
|
||||
pushObject.on('registration').subscribe((registrationId: any) => {
|
||||
this.pushID = registrationId;
|
||||
pushObject.on('registration').subscribe((data: any) => {
|
||||
this.pushID = data.registrationId;
|
||||
this.registerDeviceOnMoodle().catch((error) => {
|
||||
this.logger.warn('Can\'t register device', error);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue