diff --git a/docs/integration/pushes.mdx b/docs/integration/pushes.mdx index 0abc587..0a71632 100644 --- a/docs/integration/pushes.mdx +++ b/docs/integration/pushes.mdx @@ -90,7 +90,7 @@ private fun subscribeToTopic() { override fun onMessageReceived(remoteMessage: RemoteMessage?) { remoteMessage?.data?.also { data -> val isFeatureFlagUpdated = data["bucketeer_feature_flag_updated"] - if (isFeatureFlagUpdated) { + if (isFeatureFlagUpdated == "true") { // The callback will return without waiting until the fetching variation process finishes val timeout = 1000 // Default is 5 seconds @@ -167,7 +167,7 @@ void subscribeToTopic() { FirebaseMessaging.onMessage.listen((RemoteMessage message) async { final isFeatureFlagUpdated = message.data["bucketeer_feature_flag_updated"] - if (isFeatureFlagUpdated) { + if (isFeatureFlagUpdated "true") { int timeout = 1000; const client = BKTClient.instance; final result = await client.fetchEvaluations(timeoutMillis: timeout); diff --git a/docs/sdk/client-side/android/index.md b/docs/sdk/client-side/android/index.md index 3534b3a..184f461 100644 --- a/docs/sdk/client-side/android/index.md +++ b/docs/sdk/client-side/android/index.md @@ -396,7 +396,7 @@ private fun subscribeToTopic() { override fun onMessageReceived(remoteMessage: RemoteMessage?) { remoteMessage?.data?.also { data -> val isFeatureFlagUpdated = data["bucketeer_feature_flag_updated"] - if (isFeatureFlagUpdated) { + if (isFeatureFlagUpdated == "true") { // The callback will return without waiting until the fetching variation process finishes val timeout = 1000 // Default is 5 seconds diff --git a/docs/sdk/client-side/flutter/index.md b/docs/sdk/client-side/flutter/index.md index 2f2d602..10afad0 100644 --- a/docs/sdk/client-side/flutter/index.md +++ b/docs/sdk/client-side/flutter/index.md @@ -389,7 +389,7 @@ void subscribeToTopic() { FirebaseMessaging.onMessage.listen((RemoteMessage message) async { final isFeatureFlagUpdated = message.data["bucketeer_feature_flag_updated"] - if (isFeatureFlagUpdated) { + if (isFeatureFlagUpdated "true") { int timeout = 1000; const client = BKTClient.instance; final result = await client.fetchEvaluations(timeoutMillis: timeout);