Impossible. You can start the application using the custom URL scheme, but the user will get a Safari error dialog if the application is not installed.
I assume that your application can execute a ping server with a unique session identifier when it starts, and you can send it back to the web page using Ajax as confirmation of success. It seems like a lot of work and quite fragile.
Is it possible to detect safari error dialog with some clever JavaScript?
source share