Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Remote Config getInt() missing

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?

like image 965
James Avatar asked Nov 06 '18 10:11

James


Video Answer


1 Answers

Looks like iOS has it, oddly enough.

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

like image 164
Jake Lee Avatar answered Nov 13 '22 18:11

Jake Lee