Hello,
I’m using push notifications for iOS.
I’m currently reading the token this way:
local alerts = {push.NOTIFICATION_BADGE, push.NOTIFICATION_SOUND, push.NOTIFICATION_ALERT}
push.register(alerts, function (self, token, error)
if token then
local t = ""
for i = 1,#token do
t = t .. string.format("%02x", string.byte(token, i))
end
-- Print the device token
print("IOS TOKEN = "..t)
else
-- Error
print(error.error)
end
end)
I get a token like this:
86353937643462373164326564323264656461303332663533326234343665666532316539613939323237373130396630353633666536643262313864616532
When adding it firebase, the token is not recognized as valid:
Does anyone know what is the correct formatting to use an iOS token in firebase?