Skip to content

Commit

Permalink
Leave older global advertiser.trackingDisabled setting behind in an a…
Browse files Browse the repository at this point in the history
…bundance of caution.
  • Loading branch information
jdee committed Oct 8, 2020
1 parent f9608d9 commit ce3964d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BranchSDK/src/BranchIO/Branch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ Branch *Branch::create(const String& branchKey, AppInfo* pInfo) {
string globalDeviceFingerprintId = storage.getString("session.device_fingerprint_id");

// Remove global settings
storage.remove("advertiser");
/*
* In case more than one app with an older version of this SDK disabled tracking in the past,
* do not remove this old global setting for advertiser.trackingDisabled. All apps updating
* to this version of the SDK will import the older global setting.
*/
// storage.remove("advertiser");
storage.remove("session");

auto utf8key(branchKey.str());
Expand Down

0 comments on commit ce3964d

Please sign in to comment.