Has anyone used this library for iOS? If yes, did you encounter any problem?
Calling get_string(key)
doesn’t work properly on iOS.
I have this value on my remote config dashboard
and here is my code
function firebase_init(self)
if firebase then
local ok, err = firebase.init()
if ok then
firebase.analytics.init(function(self, ok, err)
if not ok then
print(err)
return
end
end)
firebase.remoteconfig.init(function(self, event)
if event == firebase.remoteconfig.CONFIG_ERROR then
print("firebase.remoteconfig.CONFIG_ERROR")
elseif event == firebase.remoteconfig.CONFIG_FETCHED then
print("firebase.remoteconfig.CONFIG_FETCHED")
firebase.remoteconfig.activate()
elseif event == firebase.remoteconfig.CONFIG_INITIALIZED then
print("firebase.remoteconfig.CONFIG_INITIALIZED")
firebase.remoteconfig.fetch()
elseif event == firebase.remoteconfig.CONFIG_DEFAULTS_SET then
print("firebase.remoteconfig.CONFIG_DEFAULTS_SET")
elseif event == firebase.remoteconfig.CONFIG_ACTIVATED then
print("firebase config activated")
local names = { "test_two", "Test44"}
for i,v in ipairs(names) do
print("firebase fetchin parameter " .. v)
local s = firebase.remoteconfig.get_string(v)
if s then
print("firebase result: "..s)
end
end
else
print("Firebase remote config other message")
end
end)
print("firebase.remoteconfig init launched")
else
print("error initiating firebase")
end
else
print("NO firebase")
end
end
It prints null.
Anyone has this issue?