If we keep the low beats going, I think we'll be all right. I'll save it for the very end. This is like a quick... Yes, so we did try to put this in the steps, but in case you missed it, when you're creating your flags for steps basically two through four, you are going to have to make sure you check the box that says that you're using the client side SDK. If you don't check that, it won't pick up your flag values. So make sure that when you're creating those flags, there's a little checkbox in LaunchDarkly that when you create the flag, down at the bottom it asks you about the mobile SDK and also client side. So just make sure that you go and check that. And if you happen to forget, that's fine.
What is the user object that's passed into async with LD provider used for? I'm not sure if that's covered in the README. Sorry if it is. But I'm just wondering, looking at the code here.
Great question. So the user allows you to, and you'll actually see this later in when we get into targeting a user, the user object that you can use either when you register the provider or later when you identify a user. So you can imagine a user starts as anonymous and then later becomes identified after they log in. So that user object takes things like a key, which is the user ID, the unique identifier for the user. And it can also take a set of custom attributes, which is where it gets super powered because you can use any data that you know about a user, geography, browser, anything like that to help target users and roll out features in a really granular, powerful way.
Well, nice. Thank you. Welcome. Yeah, we're going to have some fun in step three with using that information to do some cool things. All right. So, OK, how are we doing, everyone? Is everyone on step, we're looking at like, step three right now? I think by now, we've, everyone sort of roughly, I think we're roughly, we've created a flag. Hopefully, if everybody's created a flag, you should be able to see a nice little menu bar at the top of your image gallery. So, when you flip that on and off, you should see that on there. If you don't, let us know.
Cool. I'll quickly step through the kind of next bit of content that we're going to talk about, about targeting and about how we're going to toggle on and off those features that we're going to be rolling out. In our next phase. So, as you've kind of seen here when we talked about what flags can do, flags are really useful for sort of feature entitlement. And they're really useful in that sort of scenario where, say, if you're working on a particular feature and it's potentially not fully ready, it's not completely...it's passed a couple of tests, but we're not at that sort of 100% stage, having the ability to be able to turn that feature on for just your dev team so they can kind of see that initial functionality, test that in your production environment without it impacting any of your end users is super powerful. So, that's kind of what we're going to have a look at right now. We're going to have a look at creating a small segment of users and those users are going to be your dev team. And, we're going to have a look at stepping into, enabling that new view that we're going to roll out, a new sort of version of the UI for your application to adjust your dev team.
Peter, Alex, do you want to, have you got any kind of? Yeah, so the idea in this one of what we're trying to do is actually two parts. That's why it's step 3a and step 3b. The first one, what we're just going to do is create a universal rule where essentially we are going to target the members of our dev team to see our new image gallery, right? So, that's why you want to make sure you check out step 3, because if you add this rule in step 2, there will be no new gallery because the new gallery is in step 3. So, make sure that you stash your changes, make sure you commit, move to step 3 when you're ready. And, the first one will just be enabling that gallery view for anybody who is part of that dev team. Within that dev team segment, what you're going to want to do is create a couple users. So, you could use our names, you could use your own name, you could use whoever you want. Create like three users because the next thing we're going to do is show variations of that new gallery depending on the user. This is really powerful if you're trying to do like A-B testing. So like, for instance, if I want to have like a couple of different people see different values and give me feedback on what the new layout looks like, you know, maybe...because in this one, we're going to try some different columns. So, we want maybe...or Jess is going to see three columns and I'm going to see four and we can give feedback about like how does it look and what we think about this in terms of the visual element. So, yeah, give that a try. Again, the easiest thing to do is just check out that branch, go through. We try to add some comments in the code to give you some help. A couple of things that I'll say, just right at the top, make sure you import your functions. Also make sure that your flags are turned on because one of the things that we run into sometimes is that you create the flag, you go through and then nothing changes and it's because we just didn't turn on the value of the flag yet and that typically happens. And then ping us with any questions that you have.
Comments