diff --git a/docusaurus/docs/Android/02-migration-guides/01-client/01-push-notifications.mdx b/docusaurus/docs/Android/02-migration-guides/01-client/01-push-notifications.mdx index 276b2fa1e6b..7b7ba4b3ac0 100644 --- a/docusaurus/docs/Android/02-migration-guides/01-client/01-push-notifications.mdx +++ b/docusaurus/docs/Android/02-migration-guides/01-client/01-push-notifications.mdx @@ -29,6 +29,13 @@ dependencies { } ``` +The constructor of `FirebasePushDeviceGenerator` has been updated, now it requires a provider name. +```kotlin {2} +val firebasePushDeviceGenerator = FirebasePushDeviceGenerator( + providerName = "your_provider_name" +) +``` + ## Huawei If you were using our Huawei Implementation and want to keep it, you only need to switch the dependency in your `build.gradle` file, and update the imports where the old classes are used. ```groovy {2} @@ -37,6 +44,15 @@ dependencies { } ``` +The constructor of `HuaweiPushDeviceGenerator` has been updated, now it requires a provider name. +```kotlin {4} +val huaweiPushDeviceGenerator = HuaweiPushDeviceGenerator( + context = context, + appId = ApplicationConfigurator.HUAWEI_APP_ID, + providerName = "your_provider_name", +) +``` + ## Xiaomi If you were using our Xiaomi Implementation and want to keep it, you only need to switch the dependency in your `build.gradle` file, and update the imports where the old classes are used. ```groovy {2} @@ -44,3 +60,13 @@ dependencies { implementation "io.getstream:stream-android-push-xiaomi:$stream_android_push_version" } ``` + +The constructor of `XiaomiPushDeviceGenerator` has been updated, now it requires a provider name. +```kotlin {5} +val xiaomiPushDeviceGenerator = XiaomiPushDeviceGenerator( + context = context, + appId = ApplicationConfigurator.XIAOMI_APP_ID, + appKey = ApplicationConfigurator.XIAOMI_APP_KEY, + providerName = "your_provider_name", +) +```