We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7aec9d4 + 07101d8 commit 16172ceCopy full SHA for 16172ce
WooCommerce/Classes/AppDelegate.swift
@@ -303,7 +303,10 @@ private extension AppDelegate {
303
/// Push Notifications: Authorization + Registration!
304
///
305
func setupPushNotificationsManagerIfPossible() {
306
- guard ServiceLocator.stores.isAuthenticated, ServiceLocator.stores.needsDefaultStore == false else {
+ let stores = ServiceLocator.stores
307
+ guard stores.isAuthenticated,
308
+ stores.needsDefaultStore == false,
309
+ stores.isAuthenticatedWithoutWPCom == false else {
310
if ServiceLocator.featureFlagService.isFeatureFlagEnabled(.loginErrorNotifications) {
311
ServiceLocator.pushNotesManager.ensureAuthorizationIsRequested(includesProvisionalAuth: true, onCompletion: nil)
312
}
0 commit comments