PassAndroid icon indicating copy to clipboard operation
PassAndroid copied to clipboard

PassAndroid opens PDF from browser directly

Open spaetz opened this issue 2 years ago • 6 comments

PassAndroid 3.7.3 (but this has been an issue for a long time). When opening a pdf file from Firefox, it is directly imported and opened by PassAndroid without ever asking. I have multiple other applications which can handle PDFs.

When saving the PDF and opening it from the file manager, I do get asked which application to use.

So I guess PassAndroid takes over the URL handler for pdf files as the sole handler? If there is anything I can do to debug things, let me know.

Thanks for PassAndroid, I am enjoying it very much!

spaetz avatar May 31 '23 07:05 spaetz

This also happens to me, but it seems it's Firefox's fault. If I try with Chrome it asks me to choose an application. Could you try it?

rivaldi8 avatar Jun 03 '23 15:06 rivaldi8

Yeah, Chrome opens pdfs in a different app (it does not ask me either). That is weird, but apparently not Passandroid's fault then... Feel free to close unless someone finds a solution.

spaetz avatar Jun 04 '23 05:06 spaetz

maybe open a issue in the firefox app then? Guess they are not using the intent system in this case.

ligi avatar Jun 07 '23 17:06 ligi

In my device I notice that PassAndroid, apart from other hosts as mobile.aegeanair.com, m.aircanada.ca, etc... has also another compatible link: *. Looking at the manifest I see this: https://github.com/ligi/PassAndroid/blob/ce1c46b8aad8011940f626b67b250c690a6b8e22/android/src/main/AndroidManifest.xml#L560-L605

So I believe Android understands that all pdf files, no matter which host they come from, should be open automatically using PassAndroid

Crashillo avatar Jun 16 '23 09:06 Crashillo

Someone opened a bug for Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1839794

Scumpeter avatar Jul 22 '23 22:07 Scumpeter

Current Fennec opens pdfs directly within Firefox and offers a 'Download' and 'Open in App' button. Both work as expected, so the issue has been solved for me. Should I close this one?

spaetz avatar Sep 24 '23 04:09 spaetz