Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!