Skip to content

Commit

Permalink
[MOB-9446] Logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeruchat committed Jan 14, 2025
1 parent bd6cf8d commit 4e1ce26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private void onForeground() {
boolean isNotificationEnabled = sharedPref.getBoolean(IterableConstants.SHARED_PREFS_DEVICE_NOTIFICATIONS_ENABLED, false);

if (sharedInstance.isInitialized()) {
if (hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
if (!systemNotificationEnabled) {
sharedInstance.disablePush();
} else {
Expand Down

0 comments on commit 4e1ce26

Please sign in to comment.