简体   繁体   English

如何在 Play Store App 中打开 Firebase 动态链接

[英]How to open Firebase Dynamic Link in Play Store App

I'm using invitation links from Firebase Dynamic Links that redirect my user to the Play Store on Android if the app is not installed.如果未安装应用程序,我正在使用来自 Firebase 动态链接的邀请链接,这些链接将我的用户重定向到 Android 上的 Play 商店。 The redirection works fine and my app's store page is opened.重定向工作正常,我的应用程序的商店页面已打开。

The problem is that the Play Store is opened in a browser window rather than in the Play Store app.问题是 Play Store 是在浏览器 window 中打开的,而不是在 Play Store 应用程序中打开的。 This means that the user will have to type in their password to install the app even though they are already logged in on the device.这意味着用户必须输入密码才能安装应用程序,即使他们已经在设备上登录。

How can I get the link to be opened in the Play Store app instead so that the user can install with a single click?如何获取在 Play 商店应用程序中打开的链接,以便用户只需单击即可安装?

I use branch.io for these type of links (you do not need to install the SDK)对于这些类型的链接,我使用branch.io (您不需要安装 SDK)

  1. Create an account then create new app创建一个帐户然后创建新应用程序
  2. Click Configuration on left menu select 1I have an Android App1单击左侧菜单上的Configuration select 1我有一个 Android App1
  3. Search for your app and select it then fill other options if you like搜索您的应用程序和 select 然后填写其他选项(如果您愿意)
  4. it will give you a link https://[YOUR_APP_ID ].app.link它会给你一个链接https://[YOUR_APP_ID ].app.link
  5. use this link instead of store link in firebase dynamic link使用此链接代替 firebase 动态链接中的存储链接

They have a way to redirect the link correctly他们有办法正确重定向链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM