SPEAKER 1: Oh, did you-- is he?
SPEAKER 2: Yeah.
TODD KERPELMAN: Shhh.
Be quiet.
SPEAKER 1: Ask Firebase 14 with Kerp, take one.
TODD KERPELMAN: Hello, and welcome to Ask Firebase,
the show where you ask questions with the hashtag Ask Firebase.
And-- [RECORD SCRATCH SOUND].
Do I got to do the thing?
This is the hashtag, Ask Firebase.
I am Todd Kerpelman.
I'm on the Developer Relations team.
I spend most my time eating snacks, but occasionally,
do some iOS stuff.
And so with that, let's get into some of your questions.
This question comes from Sam Matthews on Twitter,
and Sam writes, hey, Ask Firebase--
hashtag-- I'm a huge fan.
Oh, well, thanks, Sam, that's really nice.
So great question.
Moving on-- oh wait, sorry, there's a second line here.
Are there official plans to create a data persistence
solution for React Native?
Please say yes.
So what I can tell you, Sam, is that there
is a very good open source library out
there called FIRE Stack, written by Ari Lerner.
He's basically bridged like, all the Firebase SDKs
with React Native.
Now I haven't used it myself, but David East
has said that Ari's, like, this crazy genius, who has
put all this stuff together.
And David is already way smarter than me,
so by the transitive property of very smart people,
I think this is probably a library worth looking into.
So it's called FIRE Stack, and we will include a link for it
down below in the description.
Great question, Sam.
Thanks for asking.
It looks like we've got another question coming in.
So this question comes from [? Isherpreetsing ?]
on Twitter, who writes, hey, Ask Firebase.
How do I do word searching in the database?
Good question.
So word searching is not something
that is supported right out of the box.
However, you can do this with a library called elastic search.
And we have a blog post that will link to below, that's
all about how to do this.
Apparently it's kind of old.
I think was written in like, PHP 3, but-- no, OK.
It's not that old, it was written in OJS.
So hopefully you can still take a look at it,
and it can give you some information you'll
need to do this kind of thing.
Hey, great question, here's one more.
So this question comes to us from Vineeth on YouTube
who asks, hey, Ask Firebase.
Hashtag.
Is there a way to differentiate between debug time analytics
and release version analytics on iOS or Android?
So very good question.
There are a couple ways you can do this
Now by default, Firebase analytics
will allow you to filter any of your events
that it records by app version.
So what you can do is, if you're incrementing your app version,
is you're sort of testing your release version and your debug
version.
You can start to filter by app version,
just to make sure that you're looking at your release
numbers, or make sure you're looking
at the ones in development.
Now obviously, sort of as you keep
incrementing build numbers, maybe this
starts to get a little confusing.
So another trick that I sometimes like doing
is setting a user property on the device
for people that are doing development or testing.
This would basically be something
that either you could hard code in,
and then removed before your release.
Or through some mystical key command on the device itself,
kind of activate the secret mode,
that allows you to label the user as a debug or test user.
Once you've done that, you can then set a user property
that this is not a real person.
It's a development or test person,
and then you can filter all your events by that user property
as well.
So those are a couple of techniques
that I've heard out there.
Give one of those a try.
Very good question.
Thanks for asking.
Let's do one more question.
So this-- I got it right up until the beginning.
This question comes to us from Nic Chong on YouTube
who writes, hey, Ask Firebase.
How do I add remote message delegate in iOS?
The snippet in the docs is showing an error in swift 3.
So thanks for checking in, Nic.
The answer is that basically, try the samples now
and they should work.
It turns out when we updated our samples for swift 3,
there were one or two stragglers that still loved swift 2.3
and wanted to stay there, but we upgraded them.
So take a look, Firebase Cloud Messaging.
The sample for swift should now be on swift 3,
and everything should be working.
Thanks for checking in.
Hopefully everything's working for you now.
According to my watch, we have time for another--
where did my watch go?
This next question comes to us from Ishan
on YouTube, who writes, hey, Ask Firebase.
What if there are two types of users in my app?
For example, in a ride sharing app,
there's a rider and a driver.
How will I authenticate them and take them to different UIs?
So good question, interesting question.
Basically, when you authenticate a user using Firebase
[? OTP ?], all you really get back is a user ID
that you can then use to identify
that user in subsequent visits.
If you want to distinguish between them,
like say, one is a rider and one is
a driver, that is work that you are going
to have to do on the server.
Now this could be something that you set up
within the Firebase database.
For instance, with an admin type of user,
you can just put people in different categories,
and then Firebase can look up within the database
whether they're a rider or a driver.
And then deliver a different UI from there.
Or maybe you have your own server that actually
records this kind of stuff.
Either way though, basically this
is work that you're going to have to do on the back.
All you really get back is a unique user ID for that user.
It's up to you to determine what UI that user should be seeing.
All right Ishan, thank you very much for the question.
[CRUMPLING PAPER SOUND]
Looks like we've got one more question.
So this next question comes to us
from Benjamin on YouTube who asks, Ask Firebase, I really
need a tutorial on FCM on iOS.
So good question, or statement, as it were.
There's a couple resources you should check out.
First, Laurence Moroney has done a screencast
on how to get started with Firebase Notifications on iOS.
Definitely check that out, because it basically uses
Cloud Messaging under the hood.
Second, I will be giving a presentation
at the Firebase Dev Summit on November 7
in Berlin on some advanced topics for Firebase on iOS.
And one of the things I will be covering
is what to look for when things go wrong
when trying to implement Firebase card messaging on iOS.
This will hopefully be followed up very shortly by a blog post
that you can check out as well, if you prefer
reading to watching video.
But if you are doing that, why are you on now?
Anyway, good question or statement, and let's move on.
So thank you, everybody, for sending
in all of your questions.
If you have a question that you would like answered
on a future episode of AskFirebase,
post it in social media with the hashtag #askfirebase.
In the meantime, if you want to stay up-to-date
with all sorts of Firebase-related news,
subscribe to our YouTube channel.
It will be fantastic.
And then you'll also get to see the Dev summit in Berlin,
which should be exciting.
Now if you'll excuse me, I'm realizing this brick wall
behind me is not earthquake safe at all, so I'm
going to get out of here.
[FOOTSTEPS] Forgot.
[MUSIC PLAYING] I've been Todd Kerpelman, and make sure
you stand tall on the wings of your dreams.
Standing tall on the-- what?