Skip to content

Commit 161f8e7

Browse files
author
Evan Greer
committed
removes disable device call
1 parent cfb2f48 commit 161f8e7

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)