简体   繁体   English

如何使用“区域”作为 Firebase 远程配置条件?

[英]How to use "regions" as Firebase Remote Config condition?

When defining a new condition for Firebase Remote Config, I can see that there's the condition of "Country/Region".在为 Firebase 远程配置定义新条件时,我可以看到有“国家/地区”的条件。 However, after tapping on the "Select countries/regions" only countries are available in the list - unlike in Audiences where regions like "Texas" are selectable.但是,在点击“选择国家/地区”后,列表中只有国家/地区可用 - 与“德克萨斯”等地区可以选择的受众不同。 Does anyone know how to use the region as an RC condition?有谁知道如何将该区域用作 RC 条件?

According to the official documentation regarding condition rule types , at "Country/Region" it is said:根据有关条件规则类型的官方文档,在“国家/地区”中说:

Select one or more regions or countries. Select 一个或多个地区国家。

This rule evaluates to true for a given app instance if the instance is in any of the regions or countries listed.如果给定应用程序实例位于所列的任何地区或国家/地区,则此规则评估为真。

So it's a country or a region and not a country and a region.所以它是一个国家一个地区,而不是一个国家一个地区。 So you cannot select a region within a particular country.因此,您不能 select 特定国家/地区的区域。 And it makes sense since when you create a rule, the device country code is determined using the device's IP address in the request or the country code determined by Firebase Analytics (if Analytics data is shared with Firebase).这很有意义,因为当您创建规则时,设备国家代码是使用请求中设备的 IP 地址或由 Firebase Analytics 确定的国家代码确定的(如果 Analytics 数据与 Firebase 共享)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM