简体   繁体   中英

Deep link not opening native app when opened in Facebook/Messenger (working in other apps…)

When opened in Messenger or Facebook , my custom deep link does not open my native app anymore but shows the App Store instead , while it's still working effectively in Safari, SMS, Whatsapp apps ...

Flow is pretty standard :

user clicks on an url redirecting to a web page opening the App Store if scheme_based url fails - code snippet:

var loadedAt = +new Date;
setTimeout(
  function() {
    if (+new Date - loadedAt < 2000){
      window.location = appstoreFail;
    }
  }
,25);

//Try launching the app using URL schemes
window.open(appUrlScheme,"_self");

Any idea why Facebook is not recognizing app scheme urls? Did they change anything? Facebook or Messenger are opening a web view, so there might be something with it but I've the feeling it was working before and stoped working recently...

Thank you very much for your suggestion, or any workaround to open a native app from Facebook/Messenger!

Lucas

Facebook可以在他们的应用程序中通过任何网络请求做任何他们想做的事情,似乎他们选择在他们的应用程序的最新版本中阻止非http请求...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM