Android Support SDK tags

답변함

3 댓글

  • Eric Nelson
    Zendesk Developer Advocacy

    Hey there,

    We walk through how to accomplish this by sharing configs and using an intent in this article. The example listed there should help you solve your issue, but if you have any questions - I'm happy to help.

    Thanks! 

    Eric

    0
  • Timur Dyushaliev

    Hey, Eric, thanks for reply. Yes, i already read that article, but I didn't understand how can i use this knowledge to solve my problem. In my case i should configure my RequestListActivity to apply tags, something like this:

    val requestActivityConfig: Configuration =
    RequestActivity.builder()
    .withTags(tags)
    .config()
    RequestListActivity.builder().intent(context, requestActivityConfig)

    Yes, but how to use it inside my HelpCenterActivity? I can't add an intent as a config to my HelpCenterActivity.builder(), also how can I detect when a user taps to "My tickets" icon to do something like: startActivity(MyRequestListActivityWithTags) . As i said the code below works well for my HelpCenterActivity:

    val requestActivityConfig: Configuration =
    RequestActivity.builder()
    .withTags(tags)
    .config()
    HelpCenterActivity.builder().show(context, requestActivityConfig)

    but when a user navigates to RequestListActivity (from HelpCenterActivity)  and then navigates to RequestActivity to send a ticket - it is showing with no tags:(
    In my app I'm just showing HelpCenterActivity (which can navigate to all activities) and I want to apply tags to all tickets (whatever from which activity RequestActivity is opened).
    So my problem is - I don't know how to configure RequestActivity for RequestListActivity, which is for HelpCenterActivity:) (or just to configure RequestActivity for all activities with using "show" method only for HelpCenterActivity).

    0
  • Timur Dyushaliev

    In iOS configuring "Request" with tags to only HelpCenterUI works very well.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공