11.4 C
New York
Wednesday, December 18, 2024

swift – Making a Deferred Deep Hyperlink in iOS with out IP Tackle or Pasteboard


I’m attempting to construct a deferred deep hyperlink in iOS and have been attempting to analysis options to perform this. By deferred deep hyperlink, I imply when the person doesn’t have the applying put in, they click on the deep hyperlink, set up the applying, then the applying is ready to open a selected hyperlink contained in the app by advantage of them utilizing that individual hyperlink to obtain it.


Flawed Options

It appears that evidently there are two widespread options to this on-line, each of which appear to have important drawbacks.

  1. Capturing the IP Tackle

    Upon clicking the hyperlink, the server captures the deep hyperlink and the IP tackle of the person earlier than redirecting them to the applying. As soon as the applying is lastly put in and opened, the IP tackle is distributed to the server to retrieve the deep hyperlink if accessible and redirect the person throughout the app.

  2. Utilizing iOS Pasteboard

    This choices makes use of the pasteboard as an middleman to cross the deep linking knowledge to the applying after set up. After clicking the hyperlink, on Safari (or no matter net browser they’re utilizing), the deep linking URL will probably be copied to the pasteboard. After set up, the pasteboard will probably be checked and relying on its contents the app will navigate wherever it must go.

    • It looks like virtually each third celebration resolution to this situation makes use of this technique (Department, Regulate)

    • This feature additionally has a number of issues related to it, particularly:

      1. The app should immediate each person to entry their pasteboard after opening it the primary time after set up which the understandably may be hesitant to grant entry to.
      2. If the person overwrites the pasteboard on this time, it would render the deep hyperlink ineffective.

Query

Apple is infamous for its walled backyard between functions, that means that native assist for such a factor is just not accessible, leaving us to provide you with our personal options. Is there every other method to carry out this deferred deep linking to an iOS software with out utilizing any of the aforementioned strategies that doesn’t share the identical drawbacks?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles