This library provides a way to convert web URLs into iOS URL scheme URLs. To add a linkout for a site, follow these simple instructions:
- Fork this GitHub repository and create a new branch
- Create a new class for your linkout and add two methods,
test
andconvert
- The test method is passed the URL, it should return true or false. If the
convert
method applies to the content at this URL, then return true. Otherwise return false - Implement a
convert
method. This method is passed the URL and apn
object. Perform whatever conversion is necessary, and ultimately set the variablepn.data.appUrl
to the URL which will open the relevant URL in that app. - Add your class to the
linkouts
array at the end of the file. - Submit a Pull Request and enter any comments about how it works or dependencies it has.