Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

221
Vistas
How to open mobile app after clicking a button in mobile browser (using javascript / react) [Deep Linking]

So basically what I want is when the user clicks on a button on a mobile browser :

  1. If the app is already installed on the user's mobile, the app opens up.
  2. If the app is not installed, I want to redirect the user to the play store app/apple store from where the user can install that app.

Any solution/overview/idea/source would be highly appreciated.

NOTE: I want to do it using JavaScript or React and not java

Big THANKS for the help in advance !!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

What you trying to do is called deeplinking, you can achieve that by accessing URI protocol which is owned by your android application For example:

example://www.myapp.com/anystring

To set your app available for URI opens. Add this receiver to your android manifest:

<receiver android:name=".DeepLinkReceiver">
    <intent-filter >
        <data android:scheme="example" android:host="www.myapp.com" />
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.BROWSABLE"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
</receiver>

In browser side just call this method:

window.open('example://www.myapp.com/anystring');

It will open window containing this string as url, so browser will automatically ask user to be redirected to your app

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda