Skip to content

Commit

Permalink
Merge pull request #864 from Iterable/evan/MOB-10627-notification-sta…
Browse files Browse the repository at this point in the history
…te-tracking-fix

[MOB-10627] removes disable device call
  • Loading branch information
evantk91 authored Jan 17, 2025
2 parents cfb2f48 + 161f8e7 commit aa08d6e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ private void onForeground() {

if (sharedInstance.isInitialized()) {
if (sharedInstance.config.autoPushRegistration && hasStoredPermission && (isNotificationEnabled != systemNotificationEnabled)) {
if (!systemNotificationEnabled) {
sharedInstance.disablePush();
} else {
sharedInstance.registerForPush();
}
sharedInstance.registerForPush();
}

SharedPreferences.Editor editor = sharedPref.edit();
Expand Down

0 comments on commit aa08d6e

Please sign in to comment.