Samsung Gear到Google Play商店的深层链接 [英] Samsung Gear deep link to Google Play Store

查看:113
本文介绍了Samsung Gear到Google Play商店的深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Samsung Gear(Tizen本机)应用程序,该应用程序还具有适用于Android的配套应用程序.要完全使用可穿戴式应用程序,需要使用同伴应用程序,因此我需要在可穿戴式应用程序内部放置指向Android应用程序的深层链接,以满足三星对可穿戴式应用程序的要求.

问题是,我不知道该怎么做,除了SAP之外,我没有找到其他任何东西,在这里没有意义,因为这意味着Android手机中必须有一些应用程序才能通过SAP进行通信./p>

我试图通过appcontrol打开具有Play商店URL的Web浏览器,但是它只生成一个日志行,告诉您没有应用程序可以处理请求(我天真地以为它会以某种方式在手机上打开浏览器,但确实如此不是).

解决方案

在手表上安装了应用之后,Gear Manager会从Gear应用中拉出深层链接.然后,手机上的Gear Manager应用会执行到应用商店的深层链接.您需要向包含深层链接的config.xml或tizen-manifest.xml添加元数据行.应该看起来像这样:

 < tizen:metadata key ="master_app_playstore_deeplink" value ="playstore deeplink URL"/> 

参见此处

I am developing Samsung Gear (Tizen native) app, which also has companion app for Android. Companion app is needed to fully use the wearable app, so I need to place deep link to the Android app inside the wearable app to meet Samsung's wearable apps requirements.

The problem is, I cannot figure out how to do this, I did not find anything besides the SAP, which has no point here, because that would mean there has to be some app in Android phone to communicate over SAP.

I tried to open the web browser with URL to Play Store via appcontrol, but it just produces one log line that tells there is no app to process request (I naively thought it would somehow open the browser on phone, but it does not).

解决方案

The deep link is pulled from the Gear app by Gear Manager after installing the app on the watch. The Gear Manager app on the phone then performs the deep link to the app store. You need to add a meta-data line to config.xml or tizen-manifest.xml containing the deep link. Should look something like:

<tizen:metadata key="master_app_playstore_deeplink" value="playstore deeplink URL"/>

See Here

这篇关于Samsung Gear到Google Play商店的深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆