Click on a spanned text support in appium


I am facing a problem to click on a spanned text. I have to click on a text in a native app which says “if you do not have access to Wi-Fi, tap here”. the here text is a hyperlink, when inspected the whole text is one element. I have to specifically click on here link to follow the flow, i used precise tap, it works fine. i used X and Y co-ordinates it works fine for some devices.
As the automation scripts should work on more than 80 devices of different shape and size, both the solutions fail.
Is there any work around to click on spanned text which looks like #here# if i check in the string content.
Any help to solve this problem.