Firebase Remote Config getInt() missing
Asked Answered
N

1

13

Firebase provides the following methods:

  • getBoolean()
  • getByteArray()
  • getDouble()
  • getLong()
  • getString()

https://firebase.google.com/docs/remote-config/use-config-android#get-parametervalues-to-use-in-your-app

But getInt() is missing from this list, I'm curious if there's a reason for this? Is the preferred approach to use Long or String and cast/convert to an int?

Nonmoral answered 6/11, 2018 at 10:14 Comment(0)
P
3

Looks like iOS has it, oddly enough.

Since int is a subset of long, you should use this to store your integer.

Presage answered 13/4, 2020 at 19:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.