SDWebImageLinkPlugin icon indicating copy to clipboard operation
SDWebImageLinkPlugin copied to clipboard

Doesn't work for app links

Open VickyPrajapati24 opened this issue 2 years ago • 4 comments

It works for any urls which loads in browsers. but I am fetching issue with url which doesn't load in browser but redirect to app.

Example: Consider telegram, It doesn't work for URL: https://t.me/+JEwsTivtuc9hYTBl But it works for: https://telegram.me/+JEwsTivtuc9hYTBl

Android people were able to get meta data from app urls too. will you be able to do anything on this. we can manually replace t.me with telegram.me but there can be many applications. we can't do it manually for all the apps. Looking forward to get the quick reply.

VickyPrajapati24 avatar Apr 09 '22 07:04 VickyPrajapati24

This repo use Apple's LinkPresentation framework. Which have no detailed control on the loading phase for meta info.

I guess this is Apple's implementation that do not refer the HTTP redirect ? Or, can you simulate a redirect before URL set to LPMetadata ?

If you really care about Cross Platform equal behavior. I suggeset to not use any Apple/Google OS based implementation, use the third party implementation instead.

Like this: https://github.com/philip-bui/web-link-preview

Write C/CPP code to keep cross-platform compatible

dreampiggy avatar Apr 09 '22 07:04 dreampiggy

But actually...I may have no active maintainance on this repo :(

I guess this issue related to iOS's unversal link: https://developer.apple.com/ios/universal-links/

Maybe you can try to debug this behavior ? There are no magic part in source code, just do something like LinkPresentation documentation to load the image/video using the API.

If you can, fire radar to Apple to report this. I assume there are no something developer can do: https://feedbackassistant.apple.com/

dreampiggy avatar Apr 09 '22 08:04 dreampiggy

And, you can forget that LPLinkView. Which is a little buggy at the time I wrote this repo.

You directly use LPLinkMetadata to grab image and title back, then set to your own UIView, do this work ? The iOS demo already use UIImageView/UILabel to build the similar UI LPLinkView provided

dreampiggy avatar Apr 09 '22 08:04 dreampiggy

I have checked Universal links not working with apple's LPLinkMetadata.

VickyPrajapati24 avatar Apr 09 '22 08:04 VickyPrajapati24