TrianguloY / URLCheck

Android app by TrianguloY: URLCheck
Other
969 stars 57 forks source link

"No apps" shown in URLcheck #350

Open 37hwk92AK opened 6 months ago

37hwk92AK commented 6 months ago

Steps to reproduce

  1. Click on a link in any app
  2. URLcheck opens automatically (because set as default browser)
  3. it shows "no apps" to open the cleaned link with

Expected behavior

Expected is that any browser should be shown (as it did usually but after updating to v2.15 this bug seem to appear)

Actual behavior

No apps shown as you can see in the screenshot

URLCheck version

2.15

Android version

13

Android Custom/Specific ROM or Device

Stock

Other details

d617fa94-de19-4f7c-a16b-a7c7110f08ea

Acknowledgements

TrianguloY commented 6 months ago

That's really odd, I don't remember any change in the v2.15 that may explain the issue... That means that, for some reason, Android isn't returning the available list of apps (or maybe there is a bug in the code, but that's less probable). Hmm, just to confirm: can you try disabling (if not already) both of the 'hide...' options in the open&share module? (the two last options: 'hide the source app' and 'hide app if URL was rejected')

37hwk92AK commented 6 months ago

Sure, so I checked the options in open and share module, this was the case: 8c5ec61f-1a71-4edb-8172-ee7eb81a7b83 After disabling "Hide app if URL..." and trying again, unfortunately no luck.

mage1k99 commented 6 months ago

have you tried restarting the device?

This happens to me after I update the app from Play Store. after a restart the issue will be fixed for me

realAllonZ commented 6 months ago

I was having a similar issue after I changed the method of installation.

Restarting resolved the issue.

TrianguloY commented 6 months ago

It's really odd that a restart is required, but I'll keep that in mind if it is reported again. Thanks for the solution! I hope the original poster issue was solved with it too.

MateusAuri commented 6 months ago

also ran into this bug after my phone randomly restarted itself can confirm that (re)restarting the phone manually made the app work correctly again

EDIT: several restarts later, it seems the issue happens with every other restart. As in, one restart makes the issue happen, a second restart solves it, a third brings it back, a fourth solves it again, and so on...

btw I'm on a samsung a32, android 13, oneUI 5.1

37hwk92AK commented 6 months ago

Hi guys, thanks for follow-up, tbh not sure why but after some time it solved. Could be because of restarting but can't confirm

harishbewe commented 6 months ago

The exact issue is happening for me too, also when it shows there are no lost of browsers instead it shows be only one browser

mage1k99 commented 6 months ago

@TrianguloY how can we help regarding this?

TrianguloY commented 6 months ago

@TrianguloY how can we help regarding this?

I honestly have no idea, both about the issue itself and how to fix and solve it. I added the label to mark that this needs help from someone who knows about this specific android feature. Or maybe it's a bug in the app code (unlikely but not impossible). In any case, without a way to debug what is really happening it's very difficult to know.

Hmm, that gave me an idea, I'll add the output of the android call to the debug module, that way when the bug happens you should be able to see and copy that information and at least know if the issue is with android itself or with the app.

realAllonZ commented 5 months ago

Happend to me again. But restarting did not help this time.

Seems to be related to Issue #353.

Anyone having this issue not on Samsung?

mage1k99 commented 5 months ago

I'm using samsung device, did not get the update yet. will update here once I get an update

MateusAuri commented 3 months ago

Further evidence that the problem is not on URLcheck itself... on one of the restarts with the issue, I tried to use Chrome Remote Desktop and it threw an error saying "This app requires Google Chrome to render its web content. To continue in the app, please install Google Chrome. [...]" even though Chrome is already installed. I'll add the debug module and edit this comment if I find anything useful

EDIT: ok, I got to compare the debug output between occurrences with and without the bug... the difference between both, when clicking the same link is that queryIntentActivities and queryIntentActivityOptions appear empty (just "[]"), and Referrer appears as "null" when clicking a link from an app that isn't URLChecker itself

i.e. going into Bluesky and clicking a YouTube link:

Intent:
//SAME AS WHEN IT WORKS PROPERLY

queryIntentActivities:
[]

queryIntentActivityOptions:
[]

UrlData:
//SAME AS WHEN IT WORKS PROPERLY

GlobalData:
{}

Referrer:
null

clicking URLChecker's own test URL:

Intent:
//SAME AS WHEN IT WORKS PROPERLY

queryIntentActivities:
[]

queryIntentActivityOptions:
[]

UrlData:
//SAME AS WHEN IT WORKS PROPERLY

GlobalData:
{}

Referrer:
com.trianguloy.urlchecker

so I guess something in the system is blocking URLChecker's access to the list of apps except itself... but just sometimes?