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.
1 parent 2df2432 commit b920ed6Copy full SHA for b920ed6
iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java
@@ -410,7 +410,7 @@ private void onForeground() {
410
boolean isNotificationEnabled = sharedPref.getBoolean(IterableConstants.SHARED_PREFS_DEVICE_NOTIFICATIONS_ENABLED, false);
411
412
if (sharedInstance.isInitialized()) {
413
- if (hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
+ if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
414
if (!systemNotificationEnabled) {
415
sharedInstance.disablePush();
416
} else {
0 commit comments