深层链接的股票加入Google+,但链接不执行任何操作 [英] Deep link shares to Google+, but link does nothing

查看:235
本文介绍了深层链接的股票加入Google+,但链接不执行任何操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用来自Google+的深度链接到一个Android应用程序,下面的 http://developers.google.com/+/mobile/android/share/deep-link

I'm trying to use deep-linking from Google+ into an Android app, following http://developers.google.com/+/mobile/android/share/deep-link.

我可以分享到Google+。在帖子的链接点击(触摸时它突出),但并没有对释放。此外,该帖子包含一个可疑的不确定一行文字。

I can share to Google+. The link in the post is "clickable" (it highlights during touch), but does nothing on release. Also, the post contains a suspicious "undefined" line of text.

我已经启用了在谷歌开发者控制台项目凭证深层链接。

I have enabled deep linking in Google Developers Console project credentials.

我使用一个签名,与Scopes.PLUS_LOGIN创建PlusClient,通过张贴:

I'm using a signed-in PlusClient created with Scopes.PLUS_LOGIN, posting via:

Intent shareIntent = new PlusShare.Builder(this, plusClient)
    .setText("Testing deep link")
    .setType("text/plain")
    .setContentDeepLinkId("deeplink",
         "title",
         "description",
         Uri.parse(thumbnailUrl))
    .getIntent();
startActivityForResult(shareIntent, 0);

我不知道如果我需要所有这些,而试图把事情的工作,我有:

I'm not sure if I need all of these, while trying to get things working I have:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />

的处理活动(给出清单中的第一个活动):

The handling activity (given as the first activity in the manifest):

    <activity android:name=".ParseDeepLinkActivity">
        <intent-filter>
            <action android:name="com.google.android.apps.plus.VIEW_DEEP_LINK" />
            <data android:scheme="vnd.google.deeplink" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
        </intent-filter>
    </activity>

是:

public class ParseDeepLinkActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.i(TAG, "onCreate");
        throw new RuntimeException("got here");
    }
}

我建立与释放密钥库和测试运行4.4几个真正的设备。

I'm building with the release keystore and testing on a several real devices running 4.4.

我已经试过:

  • 使用 PlusShare.Builder(活动)构造函数(不带 plusClient ),没有变化。

  • Using the PlusShare.Builder(activity) constructor (without plusClient), no change.

使用 addCallToAction(标签,URI,deeplink),而不是 setContentDeepLinkId 的。还有就是动作按钮没有呼叫,然后点击后进入的URI,而不是深层链接。

Using addCallToAction(label, uri, deeplink) instead of setContentDeepLinkId. There is no call to action button, and clicking the post goes to uri and not the deep link.

三检查深层链接:已启用,设置正确的开发者控制台

Triple checking "Deep linking: Enabled" is set correctly in the developers console.

大厦没有ProGuard的,没有变化。

Building without proguard, no change.

卸载应用程序,然后点击链接(应该打开播放存储条目),什么也不做。

Uninstalling the app then clicking the link (supposed to open the play store entry), does nothing.

使用不同的密钥签名。加号失败(如预期)。

Signing with a different key. Plus sign in fails (as expected).

使用不同版本的播放服务(4.0.30 VS 3.2 +)。

Using different versions of play services (4.0.30 vs 3.2.+).

亚行外壳setprop log.tag.GooglePlusPlatform VERBOSE 不产生任何日志消息。

adb shell setprop log.tag.GooglePlusPlatform VERBOSE does not generate any log messages.

取回我的API访问令牌并验证它具有认证/ plus.login ,它的作用。

Fetching my API access token and verifying it has auth/plus.login, it does.

谁能告诉我什么,我做错了吗?谢谢!

Can anyone tell me what I'm doing wrong? Thanks!!

更新:这是现在的工作,显然是固定由谷歌播放服务更新

Update: This is now working, apparently fixed by a Google Play Services update.

推荐答案

事实证明,这是一个已知的问题,将是固定的下一个Google+的更新:

It turns out this a known issue that will be fixed with the next Google+ update:

<一个href="http://stackoverflow.com/questions/20661382/google-interactive-shares-on-android-are-broken-in-version-4-2-4-58179886">Google+在Android上互动的股票在4.2.4.58179886版本

这篇关于深层链接的股票加入Google+,但链接不执行任何操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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