突然深层链接停止为facebook和twitter工作。以前它工作正常。
这是我的清单代码:
.center{
text-align: center;
}
<p class="center">
<img src="path/to/your/image.jpg" alt="Image Alt">
</p>
此外,我启用自定义搜索并添加包名称(com.pinmedia.mediaguide)。 在清单中使用相同 还要添加SHA256证书指纹。
我搜索了那个,但没有什么能对我有用
请帮助我为什么这不适用于Twitter和Facebook。对于其他人,它的工作正常
答案 0 :(得分:0)
来自Branch.io的Amruta:
我发现您只有一个针对应用链接和常规深层链接设置的意图过滤器。您应该在Android Manifest中定义两个单独的intent过滤器,如下所示:
<!-- Config for Deeplink -->
<intent-filter>
<data android:scheme="05media.com" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<!-- Config for App Links -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="05media2.app.link" />
<data android:scheme="https" android:host="05media2-alternate.app.link" />
</intent-filter>
您可以在此处查看其中一个示例应用的Android清单:https://github.com/BranchMetrics/Branch-Example-Deep-Linking-Branchster-Android/blob/master/app/src/main/AndroidManifest.xml#L34
如果您继续遇到问题,我建议您写信:integrations@branch.io。他们将能够与您一对一合作。
感谢Evan Groth的回应。