How to fall back to marketplace when Android custom URL scheme not handled?

后端 未结 7 510
無奈伤痛
無奈伤痛 2020-12-07 09:47

We have an app that handles a custom URL scheme (vstream://). When someone comes to a web page that has some vstream:// content, we need to redirect them to the store if th

7条回答
  •  难免孤独
    2020-12-07 09:51

    Embed a http server in your app as a Service, listen to a local port(higher than 1024, ex: 8080), send a request from Browser to 127.0.0.1:8080. If your app installed(and service running), start it, if request fail, goto google play.

提交回复
热议问题