Rothens
Rothens

Reputation: 815

Android qr code download the app if not installed

I'm in a development of an Android app which uses a REST API in a server. In the request it needs a number and an API endpoint, e.g.:

http://apilocation/endpoint/number

What I'd like to do is to make a QR code, that will download the app from Google Play if it's not installed, or if it's installed then it'll open up the app with the required parameters. Is it possible somehow, or I should put a QR code reader activity in the app, and the users have to use that?

Upvotes: 4

Views: 653

Answers (1)

Laurent Meyer
Laurent Meyer

Reputation: 2881

There is a StackOverflow thread which could be cool for you. And this gist could help you, it's pretty well done and, on your side, you need to define an Intent Filter in order that your app could be triggered by the custom-protocol of the JS I put a link of.

Upvotes: 2

Related Questions