File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 33
4423.9
55-----
6+ - [Internal] Moved the request for push notification authorization after login [https://github.com/woocommerce/woocommerce-ios/pull/16428]
67- [*] Fixed possible sync issue in POS (https://github.com/woocommerce/woocommerce-ios/pull/16423)
78
8923.8
Original file line number Diff line number Diff line change @@ -272,6 +272,9 @@ extension AppDelegate {
272272 #if targetEnvironment(simulator)
273273 DDLogVerbose ( " 👀 Push Notifications are not supported in the Simulator! " )
274274 #else
275+ /// We're sending notifications for logged in state only.
276+ /// Revisit this check if a local notification in unauthenticated state is needed.
277+ guard stores. isAuthenticated else { return }
275278 let pushNotesManager = ServiceLocator . pushNotesManager
276279 pushNotesManager. registerForRemoteNotifications ( )
277280 pushNotesManager. ensureAuthorizationIsRequested ( includesProvisionalAuth: false , onCompletion: nil )
You can’t perform that action at this time.
0 commit comments