【问题标题】:cordova application for getting parameter from the app url用于从应用程序 url 获取参数的 cordova 应用程序
【发布时间】:2017-12-27 11:38:59
【问题描述】:

我正在尝试在我的 cordova 应用程序中安装“https://github.com/florentvaldelievre/virtualartifacts-webintent”以从应用程序 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....

【问题讨论】:

    标签: cordova google-play


    【解决方案1】:

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

    【讨论】:

    • 这里的“referral_code”是我的自定义参数。我在 getUri() 响应中没有得到那个参数。那是我的问题
    • Google Play 不会传递任何自定义参数。只有列出的那些。
    猜你喜欢
    • 1970-01-01
    • 2012-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-25
    • 1970-01-01
    • 2015-12-03
    相关资源
    最近更新 更多