How would an app know if someone used a particular link?
To achieve this the app will need to be involved whenever the link is accessed - so anyone using the link will need the app.
Web Apps / Browser Apps
This can be done if you can reference both app and data in the same link, which can’t be done without some extra network API. It is feasible if webapps and the SAFE browser add-on are designed to support this - which is the purpose of my SAFEpress RFC proposal. This proposes a way of encoding URLs which the SAFE browser plugin can use to both load the web app (HTML/JS) and give the app access to data also referenced in the URL.
This is similar to how dynamic websites work in a server based environment, but since the SAFE network doesn’t have servers, it has to be done differently.
Only a Proposal
It won’t work for SAFE apps that don’t run in a browser though, and it isn’t accepted yet but will be discussed at some point.
I think it would be good if we can come up with a way this can work with non browser apps, and I guess it will be feasible once apps can be started by the launcher. When that happens, users could share “launcher links” which are interpreted by the launcher, decoded into a link to the app to load and a reference to some data or identifier which the app is then given access to. How about that @viv @krishna_kumar?!