HarmonyOS 鸿蒙Next:hiapp://开头的链接在安卓平台下如何使用
HarmonyOS 鸿蒙Next:hiapp://开头的链接在安卓平台下如何使用
安卓端,使用agd请求api,我们这里自行渲染广告。但是在返回的clickDeepLink参数,不知道该如何使用,采用initent设置data也不可以,机型为荣耀30pro,参数如下
hiapp://com.huawei.appmarket?activityName=activityUri|appdetail.activity¶ms=%7B%22params%22%3A%5B%7B%22name%22%3A%22uri%22%2C%22type%22%3A%22String%22%2C%22value%22%3A%22app%7CC100521625__HiAd__691e6ab3e2f149cb933e0c99700f337e__ncds_339__1__null____null%3Fmaple%3D0%26trackId%3D1003%26attribution%3D%257B%2522taskid%2522%253A%2522904077011%2522%252C%2522subTaskId%2522%253A%25229040770110000%2522%252C%2522RTAID%2522%253A%2522%2522%252C%2522callback%2522%253A%2522security%253A1D8FD83EED2676FAF85C764F%253AC2F3E5ABFB04D6BC3A31AA66072967C21F4F44A29CBFE27DC9A5B8A9C1ACAA922D1E3F546F45312DF771D274EE488D%2522%252C%2522channel%2522%253A%25221003%2522%257D%26experiment%3D%257B%2522urank%2522%253A%2522planExp%253AstrategyId%253DdefaultStrategyId%2523planName%253D%25E5%258E%259F%25E5%25A7%258B%25E6%258E%2592%25E5%25BA%258F%2523planId%253Dplan_24%2522%257D%26appoid%3Ddc7f8625ad4a46339bc1e2c3ab61193a%26listId%3Dncds_339%26listIdType%3Dncds%26adFlag%3DHiAd%26cdrInfo%3D202209241637423l01e924124%255E%257BopType%257D%255E904077011%255EC100521625%255Encds_339%255E1%255E243728192496813040_p1%255E243728192496813040%255Eb7b08f5626b01c72d17d75351b01edcd5042bf61deb56df383b74929406ed71efe8790fd93d39aca4e208886eaa846759dee9b8b8e265061501bf5d6764dce1f%255Ectr%255Efn5-Y29tLnFpaG9vLmJyb3dzZXJ-MQ%255E2022-09-24%2B16%253A37%253A42%255E%255EEBG-AN00%255E0.000400%255E0%255E2.8%255E2.8%255E9040770110000%255E900008636%255E20358%255E%255E%255E%255E%255E%255E0%255E1%255E%255E%255E%255E9%255Ec90f3051-1952-4920-9907-e1be1c336aaa%255E1%255E%255E%255ECN%255ECNY%255E243728192482956951%255EAGDPROIAA%255E%255E%255E%255E5b030e939869c39e5e10d930ed6dc9a4%255ECPD%255Ee7%255E%255E1570833385797722112%255E243728192496813045%255E%255EMTAwMw%255E%255EZXhwU3RyYXRlZ3k9I2V4cFBhcmFtcz1hcHBzdG9yZV9hZHZfZGxfbW9kZWxfYmFzZWxpbmVfYWR2YW5jZWRfdjFfc2VydmljZXR5cGVfNjIjYnVja2V0SWQ9I2V4cERlcz1hcHBzdG9yZV9hZHZfZGxfbW9kZWxfYmFzZWxpbmVfYWR2YW5jZWRfdjFfc2VydmljZXR5cGVfNjIjZXhwSWQ9MTMxN19WMi5hZ19vY3BkX3JlY19uZXdfYm90dG9tfGFwcHN0b3JlX2NwY19yZWNhbGxfZnRybF9uZXdfY3BjfGFwcHN0b3JlX2Fkdl9kbF9tb2RlbF9iYXNlbGluZV9hZHZhbmNlZF92MV9zZXJ2aWNldHlwZV82MnwxMzA3X1YyLmFnXzEzMDdfVjJfY29udHJvbGxlcg%255E%255E%255E%255E1%255E1%255E%255E%255E%255E%255E0%255E%255E%255E%255E%255E%255E0%255E1%255E1054921%255EMecyYxxpuK3%255E2%255EP8%255E%255E%255E%255E%255E%255E%255E%255Esign%253A2fb98bb730c7a533fd8e4182124dca4155d13d07fd51c0c5891fca9c037a0eaf%26version%3D2%26appserveType%3D0%26phase%3D0%26requestId%3D5b030e939869c39e5e10d930ed6dc9a4%26agdInfo%3D%7B%5C%22accessType%5C%22%3A1%2C%5C%22agdSign%5C%22%3A%5C%22A939FD676B06CF523E3C1C8C783D1EB59D9F82A8619AB528EC9AAEE3DFD5E298%5C%22%2C%5C%22cbsChannel%5C%22%3A%5C%228.MecyYxxpuK3%5C%22%2C%5C%22isColor%5C%22%3A1%2C%5C%22mediaId%5C%22%3A%5C%22com.qihoo.browser%5C%22%2C%5C%22slotId%5C%22%3A%5C%22MecyYxxpuK3%5C%22%2C%5C%22ts%5C%22%3A1664008662932%7D%22%7D%5D%7D&referrer=agdproapilink
在安卓平台下,hiapp://开头的链接是特定于华为HarmonyOS的URI scheme,并非标准安卓URI格式。因此,这类链接在安卓系统(非HarmonyOS)下通常无法直接使用。如果需要在安卓设备上处理或测试这类链接,建议通过模拟器或实际搭载HarmonyOS的设备进行。
如果问题依旧没法解决,请加我微信,我的微信是itying888。