最近の検索


最近の検索はありません

Android Support SDK tags

回答済み


投稿日時:2021年8月31日

Hello!

I have a problem with Support SDK for Android. I added tags to RequestActivity like this:

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

and it works well, but if a user navigates to RequestActivity page from "My tickets" page (RequestListActivity) tags didn't add. I think, it is because i didn't add tags to RequestListActivity:

RequestListActivity.builder().show(context, requestActivityConfig)

but i don't want to show this page at the start, i want to show HelpCenterActivity and let to users navigate to RequestListActivity from HelpCenterActivity. Isn't it possible to apply tags for RequestListActivity without using "show" method (because it will be shown from HelpCenterActivity) ? Any idea how to solve this?
(maybe "intent", but i do not know how to use it, to solve this problem).

(seems like iOS SDK doesn't have this problem).


0

3

3件のコメント

image avatar

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


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


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

0


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿