Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InitSessionComplete - BranchUniversalObject properties #102

Open
jzeferino opened this issue Jun 6, 2019 · 4 comments
Open

InitSessionComplete - BranchUniversalObject properties #102

jzeferino opened this issue Jun 6, 2019 · 4 comments

Comments

@jzeferino
Copy link
Contributor

In the context of

public void InitSessionComplete(BranchUniversalObject buo, BranchLinkProperties blp)i'm calling

Debug.WriteLine(buo.metadata.ToJsonString());

and getting:

"{"+clicked_branch_link":"false","+click_timestamp":"1559835438","~marketing":"True","$one_time_use":"False","~feature":"marketing","+match_guaranteed":"True","~creation_source":"1","~id":"627164851064107222","~channel":"Web","~referring_link":"https://mobile-api-gothelist.test-app.link/qLeAj4iAuU","+is_first_session":"False","$marketing_title":"CustomTestUrl","~campaign":"TestCampgain"}"

The question is, there is no property that I can access in buo that retrieves the referring_link. The only way to get the referring_linkis to change to InitSessionComplete(Dictionary<string, object> data)and manually parse the dictionary.

@antonargunov
Copy link
Contributor

@jzeferino try this:
string val = universalObject.metadata.GetCustomMetadata()["~referring_link"];

@jzeferino
Copy link
Contributor Author

jzeferino commented Jun 7, 2019

That works, but since im using the BUO I was expecting to have a property with that value.

Also for values like non_branch_link and clicked_branch_link I was expecting them to be available in the BUO. There is no point for the user to parse manually the dictionary in the initSessionComplete.

@antonargunov
Copy link
Contributor

@jzeferino I will send your request to our team.

@jzeferino jzeferino changed the title InitSessionComplete BranchUniversalObject InitSessionComplete - BranchUniversalObject properties Jun 7, 2019
@jzeferino
Copy link
Contributor Author

Thanks. Should I expect any due date for this? @antonargunov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants