android icon indicating copy to clipboard operation
android copied to clipboard

App opens unrelated URLs

Open bllngr opened this issue 3 years ago • 13 comments

Steps to reproduce

  1. Open this link from Firefox on Android or an e-mail reader: https://seu.cleverreach.com/f/34891-164348/wss/269246-0630edf61ba28
  2. Notice the link being opened in the Nextcloud app, or at least have it been shown as an option.

Expected behaviour

  • Nextcloud doesn't care about unrelated, third-party URLs to marketing services

Environment data

Android version: Android 11

Device model: Samsung Galaxy S10E, One UI 3.1

Stock or customized system: Stock, with Firefox for Android browser

Nextcloud app version: 3.18.1

Nextcloud server version: N/A

Environment data

These URLs are apparently used for subscribing/confirming subscriptions for newsletters managed with cleverreach.com.

bllngr avatar Jan 14 '22 22:01 bllngr

Seems like the culprit is the intent filter for the pathPattern /f/..* in AndroidManifest,xml.

bllngr avatar Jan 14 '22 22:01 bllngr

Confirmed. This will eventually solve itself in Android 12+, where the user must enable domains to be opened with Nextcloud explicitly, but we'll have to take a look for older versions meanwhile.

AlvaroBrey avatar Jan 17 '22 14:01 AlvaroBrey

In my testing opening internal links on Android 12 is broken probably due to this new requirement. Is that correct? BTW: is it even allowed to set <data android:host="*" /> on Android 12+? Seems to not be the case honestly (because it doesn#t work)...

szaimen avatar Jan 18 '22 15:01 szaimen

In my testing opening internal links on Android 12 is broken probably due to this new requirement. Is that correct? BTW: is it even allowed to set <data android:host="*" /> on Android 12+? Seems to not be the case honestly (because it doesn#t work)...

Technically it should work until we bump the targetSDK to android 12, so I'm not sure what may be happening there.

AlvaroBrey avatar Jan 18 '22 17:01 AlvaroBrey

Usually there was an astersisk shown here below supported webaddresses (aka "unterstützte Webadressen"). But as you can see here doesn't the asterik show up anymore after I updated my Samsung SGS10e to Android 12... image

szaimen avatar Jan 18 '22 17:01 szaimen

Does opening internal links work in an emulator with Android 12?

szaimen avatar Jan 18 '22 17:01 szaimen

Does opening internal links work in an emulator with Android 12?

Not working in my tests, although it should :\ I will open another issue for that

AlvaroBrey avatar Jan 19 '22 08:01 AlvaroBrey

https://github.com/nextcloud/android/issues/9386 gave a much more concise description. I have no clue, why that one is closed. This ticket here should have been merged with the above. Also, it seems this thread is just a blame on version 12. So what's the solution?!

devplan44 avatar Apr 18 '22 10:04 devplan44

#9386 gave a much more concise description. I have no clue, why that one is closed. This ticket here should have been merged with the above. Also, it seems this thread is just a blame on version 12. So what's the solution?!

No solution yet. This issue is still open; the android 12 bug is a related issue.

AlvaroBrey avatar Apr 18 '22 10:04 AlvaroBrey

I'm having the same problem in Android 9. I'm unable to open affected URLs, as I am not even asked if I want to open them with the app. I also found no way to turn off this behavior.

chaoscommander avatar Jun 22 '22 22:06 chaoscommander

I'm having the same problem in Android 9. I'm unable to open affected URLs, as I am not even asked if I want to open them with the app. I also found no way to turn off this behavior.

As a workaround, you can copy the URLs and then paste them in a browser. We still need to fix this at some point

AlvaroBrey avatar Jun 23 '22 07:06 AlvaroBrey

Workaround does not work, when the browser attempts to open the URL I am still taken directly to nextcloud app with an invalid URL error. Android 12

vyruss avatar Jun 30 '22 21:06 vyruss

Pasting the URL does not work, at least not in Firefox.

Removing nextcloud's "set as default" option in Android (12) does not guarantee matching links won't occasionally try to open in nextcloud. Screenshot_20220730-095910_Settings.png

Regardless of setting, Firefox always shows the "open in app" menu option for a matching link pattern. Screenshot_20220730-095839_Firefox.png

I experimented with both Firefox and Chrome, but Chrome does not seem to erroneously open links in nextcloud. Can anyone confirm this problem is not actually a problem with Firefox?

For testing, almost every link on the slickdeals.com frontpage matches the link pattern.

JackBeQuick87 avatar Jul 30 '22 14:07 JackBeQuick87

I believe this could actually be a Firefox For Android issue/"feature". See here for fix: https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps

I recommend marking this issue as resolved unless someone can reproduce the issue with a different browser.

JackBeQuick87 avatar Aug 20 '22 01:08 JackBeQuick87

I believe this could actually be a Firefox For Android issue/"feature". See here for fix: https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps

I recommend marking this issue as resolved unless someone can reproduce the issue with a different browser.

I have this issue if I click on a Link in outlook email client. Gmail seems to work fine

HaraldWolz avatar Sep 30 '22 10:09 HaraldWolz

I have this issue if I click on a Link in outlook email client. Gmail seems to work fine

What is your default web browser?

AlvaroBrey avatar Sep 30 '22 10:09 AlvaroBrey

Its Chrome. Also changing the settings in outlook ' use default browser' didn't help

HaraldWolz avatar Sep 30 '22 14:09 HaraldWolz

Same problem here with Android 13

simonefil avatar Nov 05 '22 12:11 simonefil

Just started happening on android 13 here as well. Links from outlook just opening in nextcloud app.

link1873 avatar Jan 05 '23 21:01 link1873

Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.

Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.

AlvaroBrey avatar Jan 06 '23 22:01 AlvaroBrey

Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.

Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.

OnePlus 8 Pro, IN2023_11_F13

See https://community.oneplus.com/wap/thread/1200191691983159301

Nextcloud Client 3.23.1

Thanks!

fandert-git avatar Jan 06 '23 22:01 fandert-git

Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.

Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.

S22 ultra

link1873 avatar Jan 06 '23 23:01 link1873

Hm, this shouldn't happen at all with Android 13, as Android 12+ disables apps opening links unless the domain is verified by either the user or Google.

Those on Android 13 with this problem, please tell me which device and Android flavor (plain Android/miui/samsung, etc) you are using.

S22 ultra here

simonefil avatar Jan 06 '23 23:01 simonefil

For people using Firefox as their default browser, go into Firefox settings and uncheck "Open links in apps." I think this bug is Firefox being more aggressive about opening app links than Android. Fixed the issue for me. The downside is I have to click ... Open in App when I want to be in the app.

pettijohn avatar Jan 06 '23 23:01 pettijohn

For people using Firefox as their default browser, go into Firefox settings and uncheck "Open links in apps." I think this bug is Firefox being more aggressive about opening links than Android. Fixed the issue for me. The downside is I have to click ... Open in App when I want to be in the app.

Use Vivaldi with the same issues, not just Firefox.

link1873 avatar Jan 06 '23 23:01 link1873

I can confirm, it is related to Firefox if it is used a default browser. Switching off in app resolved it.

PackElend avatar Feb 02 '23 21:02 PackElend

Hey all, I am also facing the same issue with Nextcloud opening random links, definitely from Outlook. The setting for "Open links in apps." was already unchecked in Firefox. I tested by switching to Chrome as the default browser, still no change.

Device: Samsung Galaxy A52s OS: Android 13 Nextcloud version: latest (3.24.1) Firefox version: latest (110.0.1)

alevas avatar Feb 26 '23 08:02 alevas

The problem with saying "Turn off open links in apps on Firefox" is that I want Firefox to open YouTube links in YouTube, and Spotify links in Spotify, etc. So switching off that option isn't really viable.

Somehow NextCloud's Android app is hijacking links - even when "Open supported links" is turned off.

  • Android 13 (LineageOS 20)
  • OnePlus 5T.
  • NextCloud3.24.1
  • Firefox 110.1.0

edent avatar Mar 05 '23 16:03 edent

Same issue from galaxy s21 android 13 from outlook email links with fennec/firefox as default browser

bobmorane06 avatar Apr 16 '23 12:04 bobmorane06

Reported it to Mozilla just in case it's their issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1831438

audishos avatar May 04 '23 23:05 audishos