Android share deep link url using whatsapp and open my app when click deep link

前端 未结 2 1362
盖世英雄少女心
盖世英雄少女心 2021-01-02 11:31

I am sharing some data using whatsapp, and I want to open a specific activity in my app when user press deep link from whatsapp

I have the following schema

2条回答
  •  梦谈多话
    2021-01-02 11:50

    I don't know if it's possible. It may be that WhatsApp only highlights links with certain protocols (i.e. http, https). In this case, you could go for a work-around if you are depending on this feature:

    Let the user share a link to http://your-server.com/forward?type=banner&id=10

    On your-server.com, you re-direct the user within the forward file (or via server configuration) to myapp://openapp?type=banner&id=10.

    Of course this is not pretty, but browsers can handle these app-links. This will not be pretty, since the user will at first open a browser to process your http link, from which the user will be redirected.

提交回复
热议问题