local function registerUrbanDevice(deviceToken) local secretString = mime.b64(APPKEY .. ":" .. APPLICATIONSECRET) headers = {} headers["Authorization"] = "Basic " .. secretString body = "" local params = {} params.headers = headers params.body = body network.request( "https://go.urbanairship.com/api/device\_tokens/" .. deviceToken, "PUT", function(event) if (event.isError) then --You have an error else --everything is fine end end, params) end
local function registerUrbanDevice(deviceToken) local secretString = mime.b64(APPKEY .. ":" .. APPLICATIONSECRET) headers = {} headers["Authorization"] = "Basic " .. secretString body = "" local params = {} params.headers = headers params.body = body network.request( "https://go.urbanairship.com/api/device\_tokens/" .. deviceToken, "PUT", function(event) if (event.isError) then --You have an error else --everything is fine end end, params) end
@jonjonsson I received answer from Urban Airship that we can’t generate Urban Android token w/o native Urban SDK (it is possible to generate the token only for iPhone). Maybe you can try with Corona Enterprise to use Urban’s SDK for Android token generation ( I can’t say something detailed about, I am only Pro Corona user).
@jonjonsson I received answer from Urban Airship that we can’t generate Urban Android token w/o native Urban SDK (it is possible to generate the token only for iPhone). Maybe you can try with Corona Enterprise to use Urban’s SDK for Android token generation ( I can’t say something detailed about, I am only Pro Corona user).