Skip to content

Commit

Permalink
Merge pull request #125 from BranchMetrics/INTENG-17552-SetIdentity-N…
Browse files Browse the repository at this point in the history
…ot-Working-Issue

INTENG 17552 SetIdentity not working issue
  • Loading branch information
NidhiDixit09 authored Feb 16, 2023
2 parents 4fc26d2 + f73ac63 commit fa5bef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions BranchSDK/src/BranchIO/Event/BaseEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "BranchIO/AdvertiserInfo.h"
#include <winrt/Windows.Data.Json.h>
#include <winrt/Windows.Foundation.Collections.h>
#include "BranchIO/Util/Storage.h"

using namespace std;
using namespace winrt::Windows::Data::Json;
Expand Down Expand Up @@ -146,6 +147,10 @@ BaseEvent::packageV2Event(IPackagingInfo &packagingInfo, JSONObject &jsonObject)
}
userData.set(Defines::JSONKEY_APP_LAT_V2, (isAdTrackingLimited ? 1 : 0));

std::string identity = Storage::instance().getString("session.identity");
if (!identity.empty())
userData.set(Defines::JSONKEY_APP_DEVELOPER_IDENTITY, identity);

jsonObject.set(JSONKEY_USER_DATA, userData);
}

Expand Down
2 changes: 1 addition & 1 deletion BranchSDK/src/BranchIO/Util/APIClientSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ APIClientSession::post(
if (isShuttingDown()) return false;

BRANCH_LOG_D("Request sent. Waiting for response.");
BRANCH_LOG_D("JSON Payload : " << jsonPayload.stringify());

// Make sure the post succeeded, and write out the response.
bool responseCode = processResponse(callback, result, httpResponseMessage);

Expand Down

0 comments on commit fa5bef8

Please sign in to comment.