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?

James
  • 3,485
  • 3
  • 20
  • 43

1 Answers1

3

Looks like iOS has it, oddly enough.

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

Jake Lee
  • 7,549
  • 8
  • 45
  • 86