xamarin-branch-deep-linking-attribution icon indicating copy to clipboard operation
xamarin-branch-deep-linking-attribution copied to clipboard

InitSessionComplete - BranchUniversalObject properties

Open jzeferino opened this issue 6 years ago • 4 comments
trafficstars

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.

jzeferino avatar Jun 06 '19 15:06 jzeferino

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

antonargunov avatar Jun 07 '19 06:06 antonargunov

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.

jzeferino avatar Jun 07 '19 09:06 jzeferino

@jzeferino I will send your request to our team.

antonargunov avatar Jun 07 '19 11:06 antonargunov

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

jzeferino avatar Jun 07 '19 13:06 jzeferino