Skip to content

Instantly share code, notes, and snippets.

@vlussenburg
Last active September 29, 2021 17:25
Show Gist options
  • Save vlussenburg/cafcbf1921626787e7960ed14389ef17 to your computer and use it in GitHub Desktop.
Save vlussenburg/cafcbf1921626787e7960ed14389ef17 to your computer and use it in GitHub Desktop.
Dictionary<string, string> leaderboard_position = new Dictionary<string, string>();
leaderboard_position.Add("type", "singleline");
leaderboard_position.Add("value", GameManager.Instance.GetLeaderboardPostion());
// Add to CIF (custom issue fields) key
Dictionary<string, object> cifDictionary = new Dictionary<string, object>();
cifDictionary.Add("leaderboard_position", leaderboard_position);
Dictionary<string, object> configMap = new Dictionary<string, object>();
configMap.Add("customIssueFields", cifDictionary);
// Show in-app conversation UI
HelpshiftSdk.ShowConversation(configMap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment