firebase使用
Deep linking is used for promoting apps with social media campaigns or sharing data with other users to link to specific content within a specific app whether your app is already installed or not.
深层链接用于通过社交媒体活动推广应用程序,或与其他用户共享数据以链接到特定应用程序中的特定内容(无论您是否已安装您的应用程序)。
Firebase Dynamic Links provides a rich feature for handling deep linking for applications and websites. The best part is that Firebase deep linking is free, for any scale.
Firebase动态链接提供了丰富的功能,可以处理应用程序和网站的深层链接。 最好的部分是,无论规模大小,Firebase深度链接都是免费的。
In this article, I will explain how to create and use Dynamic Links in Flutter. If you wish to learn more about Firebase Dynamic Links, you can check out the following video:
在本文中,我将解释如何在Flutter中创建和使用动态链接。 如果您想了解有关Firebase动态链接的更多信息,可以观看以下视频:
Firebase Dynamic Links handles the following scenarios:
Firebase动态链接可处理以下情况:
- When a user opens Dynamic Links, if your app isn’t installed, the user is redirected to the Play Store or App Store to install your app. 当用户打开动态链接时,如果未安装您的应用程序,则该用户将被重定向到Play商店或App Store以安装您的应用程序。
- If your app installed and the app is not open in the foreground/background, then the app is opened on a device. 如果已安装您的应用程序,但该应用程序未在前景/背景中打开,则该应用程序将在设备上打开。
- If the app is in the foreground/background, then the user can get a dynamic link in the registered listener. 如果应用位于前台/后台,则用户可以在注册的侦听器中获得动态链接。
You need to follow the below steps for creating and receiving Dynamic Links.
您需要按照以下步骤创建和接收动态链接。
1.在Firebase控制台中设置URL P 修复 (1. Set Up URL Prefix in the Firebase Console)
Open the Firebase console and select your Firebase project in which you want to add deep linking.