cordova应用程序从应用程序URL获取参数

时间:2017-12-27 11:38:59

标签: cordova google-play

我正在尝试安装" https://github.com/florentvaldelievre/virtualartifacts-webintent"在我的cordova应用程序中从应用程序URL获取参数。

 window.plugins.webintent.getUri(function(url) {
   alert(url);
   });


**But, the url will return 2 params as utm_source and utm_medium.**

I am using the referral link like: "TestApp://https://play.google.com/store/apps/details?id=test.product&referral_code=testrefer"

 AndroidManifest.xml write the following:
         <intent-filter>
         <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="TestApp" />
            </intent-filter>

I don't get the "referral_code" parameter from the URL. 

Any one please help me....

1 个答案:

答案 0 :(得分:1)

要构建引荐来源网址,请使用Google Play URL Builder或了解campaign parameters documentation