Pass referrer data through chrome intent to google play

后端 未结 3 1518
失恋的感觉
失恋的感觉 2021-02-02 11:07

So I have a mobile web that would try to open my android app, if it does not exist, it would fall back to google play.

for chrome, i use this intent:

int         


        
3条回答
  •  臣服心动
    2021-02-02 11:52

    Looks like it can be done by passing S.market_referrer=referrer_string

    For example

    intent://some_data_sent_to_app#Intent;scheme=app_scheme;package=package_name;S.market_referrer=referrer_string;end
    

    I have not tested this, but there are some check-ins in the chromium repo for this, don't know if it is available in the current version of chrome.

    https://codereview.chromium.org/2061493002

提交回复
热议问题