Skip to content

Commit b920ed6

Browse files
authored
[MOB-9446] Logic fix (#861)
1 parent 2df2432 commit b920ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private void onForeground() {
410410
boolean isNotificationEnabled = sharedPref.getBoolean(IterableConstants.SHARED_PREFS_DEVICE_NOTIFICATIONS_ENABLED, false);
411411

412412
if (sharedInstance.isInitialized()) {
413-
if (hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
413+
if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
414414
if (!systemNotificationEnabled) {
415415
sharedInstance.disablePush();
416416
} else {

0 commit comments

Comments
 (0)