We had set up Universal Links and it works fine before.
But recently it doesn’t work when the app cold start.
After some research, we figured out that when the app cold start via a universal link, the launchArgs will be an empty table.
Does anyone have the same problem?
Here is how we test.
- we use our universal links and build from then simple code HelloWorld project .
- add some prints in main.lua
launchArgs = ...
print("==================================================================================================")
print( launchArgs )
print( #launchArgs )
for i,v in ipairs(launchArgs) do
print(i,v)
end
for k,v in pairs(launchArgs) do
print(k,v)
end
print("==================================================================================================")
after open app via the link, launchArgs is an empty table
Nov 08 15:37:14.492 [Device] ==================================================================================================
Nov 08 15:37:14.493 [Device] table: 0x2820bf900
[Device] 0
[Device] ==================================================================================================