Wanted to test using the DeepLinking feature and see how it all worked. Seems like something that could be helpful for me later on. I wrote some code to auto-generate the AppFlyer link, but it doesn’t seem to be working.
local HS = game:GetService("HttpService")
local base1 = "https://www.roblox.com/games/start?placeId=" .. game.PlaceId .. "&launchData=%s"
local base2 = "roblox://placeId=" .. game.PlaceId .. "&launchData=%s"
local appFlyer = "ro.blox.com/Ebh5?af_web_dp=%s&af_dp=%s"
local function getDeepLink(data)
local str = HS:JSONEncode(data)
local encoded1 = HS:UrlEncode(string.format(base1, str))
local encoded2 = HS:UrlEncode(string.format(base2, str))
return string.format(appFlyer, encoded1, encoded2)
end
print(getDeepLink({TestData = {InvitedBy = "blowup999"}}))
It gave me the following link:
ro.blox.com/Ebh5?af_web_dp=https%3A%2F%2Fwww.roblox.com%2Fgames%2Fstart%3FplaceId%3D13326902507%26launchData%3D{“TestData”%3A{“InvitedBy”%3A"blowup999"}}&af_dp=roblox%3A%2F%2FplaceId%3D13326902507%26launchData%3D{“TestData”%3A{“InvitedBy”%3A"blowup999"}}
This however seems to be failing. Instead of sending me to the game or even the game’s page, it just sends me to www.roblox.com, and I’m not sure why, as it seems to follow the documentation in the original post as well as in Dev Hub. I know there’s a limit of 200 bytes decoded information, but I’m pretty sure it’s under that limit.