How to Easily Sync Web and Mobile Experiences
Using feature flags to sync user experiences across web and mobile platforms
Join the DZone community and get the full member experience.Join For Free
becoming a vip
imagine you just signed up for amazon’s vip checkout experience. in this hypothetical experience, you can click a vip button that allows you to shop for brand new items not yet available to normal amazon customers. “this is awesome!” you say to yourself, as you view the vip item list in your laptop’s browser.
but now, you have to head to the bus and go to work, but you still want to browse for items using the amazon app. because amazon uses feature flags, your mobile experience is automatically personalized to include the vip experience. cool! now, your web and mobile experiences are synced instantly.
cross-platform personalization with feature flags
feature flagging is a way to wrap features in conditionals (if/else statements) so that you can control the visibility of those features over time. in other words, you can deploy a feature as ‘off’ and then turn it ‘on’ at a later time or you can gradually roll out a feature to select users.
so, imagine you feature flag the vip checkout. you can create a rule that says: “any user who opts into the vip program will get true for the feature and everyone else will get false.” those users who are assigned the true variation will see the vip feature and those who are assigned the false variation will not.
what is great about this method is that you can use this same feature flag to control the vip checkout for both the web and mobile versions of an application.
some more benefits of cross-platform feature flagging include:
- the ability to decide whether to release a cross-platform feature simultaneously or separately, with full control over who gets to see that feature. for example, web users might get access to a new search bar before mobile users do.
- real time personalization that allows users to opt-in to new features on one platform (like mobile) and have that personalization sync with another platform (like web)
- percentage rollouts that allow you to gradually release a feature to targeted users on different platforms, allowing you to assess user and performance feedback for each platform
- a kill switch that lets you turn off poorly performing features for web and mobile, without having to redeploy
- subscription plan management using feature flags to bundle cross-platform features into different tiers (ex. to create bronze, gold, and vip plans).
cross-platform feature flagging is an easy way to deliver personalized and synchronized user experiences across different platforms. overall, it is paving a way for a new genre of user experience personalization, where companies can harness real time user feedback to customize features across different platforms. this could usher in an era where users do not have to adapt their behavior to an app… the app will adapt to them.
Published at DZone with permission of Justin Baker, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.