Skip to content Skip to sidebar Skip to footer

Android Access Firebase With Keys With Spaces In Them

This might be a dumb question but I couldn't find any examples on google's firebase site. If I have a key in the firebase database of 'First Name' and then I call FirstNameClass f

Solution 1:

Try using @PropertyName. Your model should look like this:

FireNameClass{

    @PropertyName("First Name")public String FirstName;
    ...
}

Note: I haven't tried it. If it doesn't work, I think I know another way to do it and will update this answer

Hope this helps

Solution 2:

Post a Comment for "Android Access Firebase With Keys With Spaces In Them"