Skip to content

Commit

Permalink
docs: fix isFeatureFlagUpdated treated as boolean
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Yuichi Okimoto <[email protected]>
  • Loading branch information
cre8ivejp committed Aug 26, 2024
1 parent f97c873 commit 80b0e90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/integration/pushes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/client-side/android/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/client-side/flutter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80b0e90

Please sign in to comment.