Redirect to stores if app isn't installed

Hello everyone!

I'm generating a link to redirect users to my app.
If the app isn't installed, I want to redirect the users for respective store (app store or play store).

For android usres it's no problem. My difficulty is about iOS users.

I can redirect using 

window.location = 'itms-apps://itunes.apple.com/br/app/...'

But I can't choose when it must be done (when app isn't installed).

Can anyone help me?

Pedro Santos wrote:

Hello everyone!

I'm generating a link to redirect users to my app.
If the app isn't installed, I want to redirect the users for respective store (app store or play store).

For android usres it's no problem. My difficulty is about iOS users.

I can redirect using 

window.location = 'itms-apps://itunes.apple.com/br/app/...'

But I can't choose when it must be done (when app isn't installed).

Can anyone help me?

Hello Pedro,

Check this plugin on forge, I think that can help you about this issue if the app is installed or not.

https://www.outsystems.com/forge/component-overview/3078/appavailability-plugin


Best Regards.