how to use app links to pass parameter to android playstore to be retrieved when app is installed

后端 未结 1 737
慢半拍i
慢半拍i 2020-12-04 22:04

I\'m developing a social android trivia game. When a user challenges to a game a friend, who doesn\'t have my trivia game installed, i\'d like to send him a custom url to do

1条回答
  •  忘掉有多难
    2020-12-04 22:38

    To send data to the Android Market, you have to build an uri like this one:

    market://details?id=my.package.name&referrer=someDataToTransfer
    

    To get this data back, you should implement an INSTALL_REFERRER Receiver.

    
       
       
       
    
    

    Here is a short tutorial that will explain you how to fully implement this solution.

    And if you want to test it without writting any code, checkout my app: Install Referrer on GitHub or on the Play Store

    0 讨论(0)
提交回复
热议问题