当Android应用程序从Play商店以外的任何第三方位置安装时,我们怎样才能获得延迟深度链接工作,比如说GDrive或S3存储桶.在这种情况下如何传递意图数据?提前致谢.
I have implemented deeplinking in one for my activities. But when the link is clicked, an Intent chooser opens asking whether to open from the app or from the browser. How to open from app directly?
Also, when the app is not installed, it does not take to playstore. It opens in the browser.
Below is my code in the manifest :
<activity android:name=".activities.VideoNewsDetailActivity"
android:theme="@style/AppThemeActivity"
android:configChanges="orientation|screenSize"
>
<!-- Add this new section to your Activity -->
<intent-filter android:label="@string/videoNewsDetail">
<action android:name="android.intent.action.VIEW" …
Run Code Online (Sandbox Code Playgroud) 在使用 AppLinks for Android 为我的应用程序开发功能时。我意识到它实际上可以在不使用 assetlinks.json 文件的情况下工作。
起初,我认为这是因为我的应用程序是用于调试目的的应用程序,没有通过商店签名和发布,出于测试目的,谷歌决定给我们一些工作空间。
我发布应用程序的那一天到了,我将我的应用程序通过 Beta 版,从商店安装我的应用程序并点击https://example.com,我很惊讶地看到我被问到我想打开哪个应用程序URL,即使我没有从https://example.com/.well-known/assetlink.json提供 assetlinks.json 。
对此有解释吗?也许检查是完全异步的,如果在某个时候 Google 进行检查并发现您没有这个文件,他们会关闭它,直到您修复它,而您必须等到下一次他们检查您?
顺便说一句,我已经在 iOS 上实现了相同的功能,并且以一种非常苹果风格的方式,你真的无法绕过将你的 apple-app-site-association 文件放在正确的位置并使其从正确的端点可用.
感谢您的解释 :)
纪尧姆。
我试图查看文档,但我看不到 Apple 是否在任何地方提到了 URI Scheme 已被弃用?
在 iOS 13 中使用 URI 方案有什么缺点吗?
编辑:我的应用程序中带有 URL Scheme 的 Deeplink 在 iOS 12 上完全正常工作,但在 iOS 13 中对我来说停止工作了。
我尝试根据react-navigation配置链接文档为我的react本机应用程序编写配置对象。
我定义了一系列路径 --> 路由映射,包括 Chat:'feed' 和 Explore:'news'
我的目标是让应用程序在解析https://example.com/someusername时默认显示“个人资料”屏幕,并将“someusername”作为 id 参数传递。类似于https://instagram.com/apple直接映射到 @apple 帐户的个人资料屏幕。
const linking = {
prefixes: ['https://example.com', 'example://'],
config: {
Home: {
path: '',
screens: {
Chat: 'feed',
Explore: 'news',
Profile: ':id',
},
},
},
}
Run Code Online (Sandbox Code Playgroud)
我不会允许用户创建帐户@feed、@news等以避免冲突。如果“someusername”尚不存在,我还会显示“找不到用户”消息
有没有正确的方法来执行此配置对象?或者,如果我需要编写自定义 getStateFromPath / getPathFromState 函数,有人有示例吗?
React Native 深层链接在 Android 版本 12 上不断失败,有人有帮助吗?在旧版本上它工作得很好,所以配置一定很好,我检查了大概 100 次 React Native 文档。