This is a bug in my opinion.
–
[lua]function scene:show(event) – show event inside an overlay scene
if event.phase == “will” then
print(composer.getSceneName(“overlay”))
– Prints nil
timer.performWithDelay(1000, function print(composer.getSceneName(“overlay”)) end)
– Prints overlay name correctly
end
end[/lua]