We have two Audiences based on the User Property which value is either true
or false
.
And we send different Push Notifications to these 2 Audiences.
At one point user's property value can be changed so I expect him to be deleted from one Audience and appear in another like it is described official docs:
Using Remote Config with Analytics audiences has some limitations when audiences are not based on user properties. Specifically, users become permanent members of an audience after they are assigned to it. With user properties, you can define them so that they are only temporarily true: users are assigned to an audience when the properties are true, and then removed from the audience when the properties are no longer true.
But in reality user stays in both Audiences and I receive both push notifications(dedicated to different Audiences) on the same device.
And same issue is experienced by others: Create audience based on dynamic user property
Is it a bug or am I missing/misunderstanding something?
Once a user is added to an analytics audience, they will forever be a part of that audience.
The documentation you quote from provides a link to the documentation for using Firebase Remote Config with Analytics. Specifically:
Remote Config now lets you use Analytics user properties to create conditions, allowing you to customize your app for segments of your user base that you defined much more precisely than was previously possible.
So by using user properties from Analytics in Remote Config, you can have them temporarily meet a specific condition in Remote Config. Once the property changes to a non-matching value, the user will no longer match the Remote Config condition.
This only works within Remote Config. The user will still be part of any Analytics audience they may have become part of earlier. Hence, any targeting that you do based on the Analytics audience will still target the user.
With recent Firebase updates this should be true by default as explained here ("Reach users more effectively with dynamic audiences in Google Analytics" chapter): https://firebase.googleblog.com/2018/10/whats-new-at-firebase-summit-2018.html
Note that you can still have the old behaviour (forever in the audience) if you checked "At any point" in your conditions as explained here: https://support.google.com/firebase/answer/6317509?hl=en (Step 6)
来源:https://stackoverflow.com/questions/51730594/firebase-is-user-deleted-from-audience-if-his-user-property-is-changed