Is there a way to prevent one app from automatically opening another app when tapping on links?

On iOS, the system prompts me for permission before an app can open a link in another app. However, on Android, it seems to happen automatically without any confirmation.

Thanks in advance!

  • masterofn001
    link
    fedilink
    English
    13
    edit-2
    25 days ago

    The simplest and most generic solution is to go into the settings app and to your apps settings.

    Select the app you want to prevent from opening.

    Towards the bottom you should see something like “open.by default.”

    Not sure exactly which version of android changed the options, but if you tap that it will either give the newer option of °in the app °in the browser

    In the browser should keep the app from opening.

    I find the new language is much less clear on what these do vs :

    The older default links settings was to not allow app to open. Ask. Or allow.

    You might also find a setting in the browser itself along similar lines of ‘allow links to open out of browser’ , ‘keep links in browser’,‘open link in app’ etc.

    Also, if you like, you can also allow other preferred apps to open those links Eg:

    And for more info :

    https://support.google.com/android/search?q=open+by+default

    • Holeheadou92984OP
      link
      fedilink
      English
      225 days ago

      thanks a lot! I have a very similar setting to yours

      I have set 2 apps to “In your browser”, but one can still open another instead of opening in the browser

      Maybe I missed something here?

      • @Azzu@lemmy.dbzer0.com
        link
        fedilink
        English
        325 days ago

        It may not be using androids URL opening functionality but directly opening the app itself, which is possible. Would be good to know the apps involved.

  • @Flatfire@lemmy.ca
    link
    fedilink
    English
    7
    edit-2
    25 days ago

    Seems to depend on the flavour of Android. What version/brand do you have? I know my Pixel asks first unless I allow it more generally.

    You may be looking for the “Instant Apps” settings though. Searching “links” in your Android settinbs should provide a similar result regardless what brand of phone you have though.

    • Holeheadou92984OP
      link
      fedilink
      English
      225 days ago

      Hi I am using GrapheneOS

      I have set 2 apps to “In your browser”, but one can still open another instead of opening in the browser

      Maybe I missed something here?

      • @illi@sh.itjust.works
        link
        fedilink
        English
        225 days ago

        I use Graphene and have it set up to ask me. Not sure what setting that is though 😅 but it should be possible

  • xmanmonk
    link
    fedilink
    English
    125 days ago

    Also, if you never set a default browser, at least on my phone, it asks which browser every time.

  • @gedaliyah@lemmy.world
    link
    fedilink
    English
    125 days ago

    A longer answer to those comments already here is that it may depend on the particular app. If you are trying to prevent the browser or a system app (including perhaps the app store or assistant, among others) from being opened, it may not be possible, depending on the exact OS you are using.

    Most other apps can be prevented from opening links, as described in other comments.

    • Holeheadou92984OP
      link
      fedilink
      English
      024 days ago

      I’m using GrapheneOS. Is it possible to “prevent the browser or a system app (including perhaps the app store or assistant, among others) from being opened” in GOS?

      • @gedaliyah@lemmy.world
        link
        fedilink
        English
        024 days ago

        Yes. Most of those settings are unlocked and you can choose your own defaults. One of the major appeals of using GrapheneOS imo

        • Holeheadou92984OP
          link
          fedilink
          English
          124 days ago

          which setting does that then? (prevent an app from opening another app)

          • @gedaliyah@lemmy.world
            link
            fedilink
            English
            124 days ago

            Settings > Apps > Default Apps

            And in the individual app settings as described by others in this thread.

      • katy ✨
        link
        fedilink
        English
        0
        edit-2
        24 days ago

        i actually have both but i prefer linksheet as the default since the ui is a little nicer and mimics the old android browser chooser.

        i typically just use urlcheck for things like shorturls and links that i don’t know the source of, since urlcheck also shows up in the list in linksheet so i have the option to use it or another browser/app