kuesji / link_eye

choose app before opening links in android
MIT License
39 stars 5 forks source link

Intercept links opened by NFC tags #13

Open sebastianha opened 1 year ago

sebastianha commented 1 year ago

Hi,

first of all thanks for the great app, I use it to prevent accidental clicks on links or if apps automatically open links.

Under "normal" circumstances this works great but when I put a NFC card with an URL on my phone it automatically opens the browser and not Link Eye, even when Link Eye is my default browser. There must be some other mechanism which directly triggers the browser and is not intercepted by Link Eye.

Would it be possible to subscribe to this NFC action and also route it through Link Eye? This would be very handy and also enhances security as right now any web page opens up without any interaction on the phone just by touching the card to the back of the phone.

kuesji commented 1 year ago

i can't reproduce this issue on my side due lack of nfc card at the moment. i will look into this by reading docs but it will take some time.

can you try Intent Intercept app from f-droid and send screenshot if it is able to intercept nfc open intent? it will make things easier for me.

sebastianha commented 1 year ago

Thanks for the quick answer, I will try it and let you know!

sebastianha commented 1 year ago

The app does not trigger, the browser is opened directly without any user interaction. When an empty tag is touching the phone the "NFC" app opens with an error message "Unknown tag type". Perhaps you have no chance to intercept this which is sad.

sebastianha commented 1 year ago

Hi, new information: If I install another browser like Firefox I get a selection dialog where I can choose between Chrome and Firefox. So there must be a way to register to this event. LinkEye is currently not a choice.