Skip to content

Commit

Permalink
Merge pull request #11960 from bitpay/revert-11914-bug/push-ios-01
Browse files Browse the repository at this point in the history
Revert "Do not register token for push notification on iOS"
  • Loading branch information
gabrielbazan7 authored Nov 19, 2021
2 parents f71e81a + 1620bc3 commit ff0610b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/providers/push-notifications/push-notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ export class PushNotificationsProvider {
}

public init(): void {
if (
this.platformProvider.isIOS ||
!this.usePushNotifications ||
this._token
)
return;
if (!this.usePushNotifications || this._token) return;
this.configProvider.load().then(() => {
const config = this.configProvider.get();
if (!config.pushNotifications.enabled) return;
Expand Down

0 comments on commit ff0610b

Please sign in to comment.