Piano does not natively support user segmentation based on the app version for the purpose of showing templates. However, this functionality can be achieved by utilizing custom variables within the user segmentation section of an Experience. Here’s how you can approach this:
-
Push Custom Variables: Ensure that your app pushes the app version information to Piano before the experience execution. This can be done using the
tp.pushmethod to set custom variables. -
Segment Users Based on App Version: Use these custom variables to segment users accordingly, allowing you to target notifications or actions based on the specific app version they are using.
For example, you could set it like this:
tp.push(["setCustomVariables", { "app_version": "1.2.3" }]);
In Composer, you would then create an experience that targets users based on the custom variable app_version and its value(s).