Isn't that exactly what you want? Youtube creates a shared link e.g. shared.youtube.com?videoid=2839347394
Youtube has registered the URL scheme youtube.com in their app, now whenever someone opens a link with youtube.com, the youtube app opens and they then read the intent and load the video from their backend based on the videoid.
what i want is this
i have an app called halacha
user 1 has an iphone with that app
he listen to a audio file that is in a list.
he likes it and want to share with user 2 that has the app installed on his android device
i dont want to send the whole audio file
i wan to send a url to user 2.
user2 clicks on it and my app opens on his phone and is redirected to that audio file that starts to play.
all i need is to create that url that will command the phone to open my app and read the ID that is passed with that url
it should work
ios->ios and ios>android (android>ios) and android>android
all this with the same ulr