mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.14k stars 2.91k forks source link

App Links Don't Recognize Installed Apps #20857

Open rmehyde opened 2 months ago

rmehyde commented 2 months ago

Steps to reproduce

  1. Go to a website with an app link you have installed, e.g. Instagram or Reddit
  2. Follow the "Open in app" link

Expected behavior

Link opens in the app

Actual behavior

Firefox asks if you want to open in the App Store, taking you to the installation page for the already-installed app in the App Store.

Occasionally an app link works for me, I can't recall which do work but Instagram and Reddit consistently do not.

Device & build information

┆Issue is synchronized with this Jira Task

data-sync-user commented 1 month ago

➤ Alexandru Farcasanu commented:

Norberto Andres Furlan

I investigated this and we can’t handle this behaviour. It is happening also on Chrome and Safari. (for some websites like Reddit or Instagram)

Why?

So, few sites like Reddit, Instagram or Youtube have that top banner with a button to open the native app.

The problem is, that button have a different URL structure, few examples:

Instagram: https://apps.apple.com/app/instagram/id389801252?ct=igweb.unknown&mt=8&pt=428156&vt=lo ( https://apps.apple.com/app/instagram/id389801252?ct=igweb.unknown&mt=8&pt=428156&vt=lo )

Reddit: https://apps.apple.com/app/id1064216828 ( https://apps.apple.com/app/id1064216828 )

Youtube: vnd.youtube://m.youtube.com/watch?v=whge6XLIQB0&feature=mwebtonativeapp11268432&itccampaign=mwebtonativeapp11268432&redirectappstoreios=1&app=desktop

After this words, that redirection to the AppStore is expected in the Instagram and Reddit cases because of that URLs structures and we can’t change the URLs.

data-sync-user commented 1 month ago

➤ Nishant Bhasin commented:

This is on the website to send the user to the proper page and is not something we can fix. If its a universal link / deeplink we can offer to open the app automatically however if its not then we don’t have a provision currently built in iOS to check all the supported apps for the link. Suggestion to close this. cc Norberto Andres Furlan Alexandru Farcasanu

ghost commented 1 week ago

It is happening also on Chrome and Safari.

This user says that this doesn't happen with Safari: https://old.reddit.com/r/firefox/comments/1f1punc/firefox_doesnt_open_reddit_in_app_ios/