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

Not able to click links in message center's incoming messages body #237

Open
allam-cshekar opened this issue Apr 25, 2022 · 6 comments
Open

Comments

@allam-cshekar
Copy link

Links in incoming message body in message center are not clickable, looks like android:autoLink="all" attribute on message_body TextView in apptentive_message_incoming.xml is not working .

 <TextView android:id="@+id/apptentive_compound_message_body"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:textAppearance="@style/Apptentive.TextAppearance.Body1"
                          android:textIsSelectable="true"
                          android:autoLink="all"
                          android:focusable="true"/> 

Posible solution would be to add messageBodyView.setMovementMethod(LinkMovementMethod.getInstance()); in IncomingCompoundMessageHolder.

Please let me know if there is any other easy solution for this without waiting for next release . Thanks

@HarryAWoodworth
Copy link

Hello @allam-cshekar , thank you for bringing this issue to our attention. What version of the Apptentive SDK are you using?

@allam-cshekar
Copy link
Author

Hello @HarryAWoodworth , thanks for the reply I am using apptentive-android 5.8.3 version .

@HarryAWoodworth
Copy link

I am not able to reproduce this issue in my tests, would you be able to send screenshots of the issue you are facing? And if able to, the link(s) you are testing? Thank you

@allam-cshekar
Copy link
Author

allam-cshekar commented Apr 26, 2022

Basically, it has to do with the way we define string resource in incoming message. Raw links are working but linked links are not formatted and not clickable

This does not work:

Google

But this does:

www.google.com

I guess this similar to this issue.
Here is the screenshot on my app, Help center is supposed to be clickable in this image.

@HarryAWoodworth
Copy link

I apologize for the delay in my response. When you are sending the linked link in Message Center, how is it input? Is it formatted through your Zendesk integration?

@allam-cshekar
Copy link
Author

Hi @HarryAWoodworth , sorry for delay in my response. I am creating and sending linked link in Message Center as show in the video below. Let me know if you have any question. Thanks

linking.links.in.message.center.mov

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