First, you have to register for the event. You can do it anytime, but I put this code on my AppDelegate class:
So we must parse the URL and extract the "param=value" pairs
We can do this by editing the app's info.plist and adding a URL Schemes item under the URL types item. The value for this key is the scheme that the OS will associate with your app.
If you want to pass parameters to the app you can simply add them to the URL myapp://?param1=val1¶m2=val2
When you do this from Safari, you will get a notification such as this: