apptentive / apptentive-android

Apptentive Android SDK
http://www.apptentive.com
BSD 3-Clause "New" or "Revised" License
65 stars 64 forks source link

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

Open allam-cshekar opened 2 years ago

allam-cshekar commented 2 years ago

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 commented 2 years ago

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

allam-cshekar commented 2 years ago

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

HarryAWoodworth commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

https://user-images.githubusercontent.com/98413939/167879636-70e40cbf-3f33-4932-821f-3261dacaa481.mov