In my react native app I am trying to get URL with the highlighted text from
any browser, I used ShareMenu to get highlighted text but failed to get URL, If any user highlighted any text from any website in a browser I want that website URL also, how can I achieve this I have tried many ways but failed, please suggest any solution.
I'm not sure I'm understanding correctly - are you saying that the app is supposed to be monitoring all browser activity for text that the user is highlighting? That sounds nefarious - please elaborate what the use case is.
Ok, that doesn't describe the use case (which is the WHY of what you intend to do), but it does confirm that I understood correctly. That sounds creepy - would the user know that your app intends to collect this information? TellTheDetails about the use case.
Since you didn't mention the custom text processing idea I mentioned, may we assume that you looked at it, and concluded that it does not meet your needs?