Skip to content

Commit aa08d6e

Browse files
authoredJan 17, 2025
Merge pull request #864 from Iterable/evan/MOB-10627-notification-state-tracking-fix
[MOB-10627] removes disable device call
2 parents cfb2f48 + 161f8e7 commit aa08d6e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

Diff for: ‎iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,7 @@ private void onForeground() {
411411

412412
if (sharedInstance.isInitialized()) {
413413
if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
414-
if (!systemNotificationEnabled) {
415-
sharedInstance.disablePush();
416-
} else {
417-
sharedInstance.registerForPush();
418-
}
414+
sharedInstance.registerForPush();
419415
}
420416

421417
SharedPreferences.Editor editor = sharedPref.edit();

0 commit comments

Comments
 (0)