We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfb2f48 commit 161f8e7Copy full SHA for 161f8e7
iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java
@@ -411,11 +411,7 @@ private void onForeground() {
411
412
if (sharedInstance.isInitialized()) {
413
if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
414
- if (!systemNotificationEnabled) {
415
- sharedInstance.disablePush();
416
- } else {
417
- sharedInstance.registerForPush();
418
- }
+ sharedInstance.registerForPush();
419
}
420
421
SharedPreferences.Editor editor = sharedPref.edit();
0 commit comments