iOS push notification token formatting for firebase?

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?

The iOS implementation uses the Apple Push Notification Service. Firebase is only used on Android.

Hi, I’m new to iOS. My app returns a push token just like those numbers above. It doesn’t look like the one in Defold Push notification documentation
When using a server to send for testing, I’ve got a message BadDeviceToken
Can someone help me to confirm that the token is in good format?

Looks like this part is unnecessary. I can’t guess what it is using for but the token is already in a good format, no need futher action