Firebase Dynamic Links cannot work on Huawei phones without GMS. GMS will be called for redirecting to the link. So if there is no GMS, redirection to the link cannot be processed.
You can use App Linking on Huawei devices. The App Linking service provides the App Linking SDK. You must integrate the SDK into your app before your app can create and receive links of App Linking.
- How to integrate the App Linking SDK
- Integrating the AppGallery Connect SDK: Integrate the AppGallery Connect SDK and plug-in before integrating the App Linking SDK into your app
- Enabling the App Linking Service
- Sign in to AppGallery Connect and select My projects.
- Find your project from the project list and click the app for which you need to enable App Linking on the project card.
- Go to Growing > App Linking. On the App Linking page that is displayed, click Enable now.
- Integrating HUAWEI Analytics Kit: To collect statistics on App Linking events, you need to use HUAWEI Analytics Kit.
- Integrating the App Linking SDK
Add the following code to the build.gradle file in the app directory (usually app/build.gradle) to integrate the App Linking SDK:
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.0.300'
Configure the following dependencies when using the aar2eclipse tool to convert your package into an AAR package:
dependencies {
embed "com.huawei.agconnect:agconnect-applinking:1.4.0.300"
}
After the App Linking SDK is integrated, you can create links of App Linking in AppGallery Connect or in your app.
Similar question: Is it possible to implement Firebase Dynamic Links on Huawei devices?