最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios universal links - Why isn't Instagram opening my iOS custom URL scheme - Stack Overflow

programmeradmin1浏览0评论

I'm developing an app with SwiftUI, and I've successfully implemented Universal Links. It works when I click on the link in Mail, iMessage, etc. However, when I try to click on the link in Instagram, I do not get redirected to my app since it's within Instagram's in-app browser.

To try to fix this, I'm using a custom URL scheme in tandem with my Universal Link. Essentially, the web app that's linked to my Universal Link would redirect the user to my custom URL scheme if it detects that the user came from Instagram. Everything works except that when I get redirected to the custom URL scheme, I get a "There was a problem loading this website" error in the Instagram browser. I've verified that the custom URL scheme is in my Info.plist, that my web app is redirecting to the correct URL, and that it successfully redirects to my app when I use the URL via an actual web browser instead of Instagram. So I'm not really sure why it doesn't work on Instagram.

This is the only approach I've seen online, so any ideas would be appreciated!

发布评论

评论列表(0)

  1. 暂无评论