1

I am trying to trace link click anywhere & in any app in android device. For Example, if user clicks links inside WhatsApp - before link redirects to browser, i want to trace it inside my application that link is clicked.

Is there any way to achieve this??

I tried Safe Browsing, but its not fulfilling my requirement. Your suggestions can help me a lot.

Please Let me know if any have solutions for this.

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
Bhoomika Patel
  • 1,895
  • 1
  • 13
  • 30
  • The one way I can think of is collecting the logs and analyse it. But I am not sure if this is against rule or not. you might want to confirm this one before get started. – Lokesh Pandey Sep 14 '18 at 05:00

1 Answers1

1

Within your App yes it is possible to trace user's click events i.e. You can collect analytics data But the same is not possible for whole device i.e. you can not get trace/click events/analytics data of other apps or entire device.

It is against the security policy and Google will not allow it.

Hope it will help you.

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
  • How can i trace link is clicked, because on click link will be redirected to browser, then how i can analyze it? – Bhoomika Patel Sep 14 '18 at 04:53
  • Please read my answer again.... if that link is inside **your app** then only you can get link clicked event. – Vikasdeep Singh Sep 14 '18 at 04:55
  • No, listening for link click is possible even from outside of the app. Think of any link of Quora in Chrome browser, if the Quora is installed, you can open it with quora instead of browser. – Kaushal28 Sep 14 '18 at 04:57
  • @VicJordan yes, i understood it. I am now asking about tracing inside my app itself. – Bhoomika Patel Sep 14 '18 at 05:01
  • There are multiple ways to track link clicks inside your app and it is vast question. It depends upon your requirement and your implementation i.e. Do you want to send clicked link info to server for analytics or you want to perform some action within your app. Also how you have implemented the view that is also important so please share relevant source code as well. – Vikasdeep Singh Sep 14 '18 at 05:06
  • @VicJordan I want to perform an action before link redirects to browser. but i am not clear that how to do it, because on link click it well immediately redirected to browser. – Bhoomika Patel Sep 14 '18 at 05:14