diff --git a/BranchSDK/src/BranchIO/Event/BaseEvent.cpp b/BranchSDK/src/BranchIO/Event/BaseEvent.cpp index ce0660f..8a5e061 100644 --- a/BranchSDK/src/BranchIO/Event/BaseEvent.cpp +++ b/BranchSDK/src/BranchIO/Event/BaseEvent.cpp @@ -10,6 +10,7 @@ #include "BranchIO/AdvertiserInfo.h" #include #include +#include "BranchIO/Util/Storage.h" using namespace std; using namespace winrt::Windows::Data::Json; @@ -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); } diff --git a/BranchSDK/src/BranchIO/Util/APIClientSession.cpp b/BranchSDK/src/BranchIO/Util/APIClientSession.cpp index 47153f4..1de82c4 100644 --- a/BranchSDK/src/BranchIO/Util/APIClientSession.cpp +++ b/BranchSDK/src/BranchIO/Util/APIClientSession.cpp @@ -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);