Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda