What you're looking to do really can't be done with UIActivityViewController since each service has a completely different mechanism for encoding/representing links. Your best is probably to use some kind of URL shortening service such as Google's
Can you put a hyperlink in a UIActivityItemProvider?
-
09-07-2023 - |
Question
I have a huge link. I want to share this link when a user in my app posts to facebook from within the app. However my link is too large so I'd like to shorten it. Is there anyway (natively) I could have something like "Download the app HERE" where HERE redirects to my super long link?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow