Hi.
I’m wondering about the best way to handle an event just before a Storyboard scene is changing!?
Currently I’m disconnecting from PubNub in a buttonBack() funtion, and on Android I then don’t see the device disconnecting from the specific channel? On iOS it works fine. I’ve adjusted the scene transition time and it seems to fix the problem:
function buttonBack() disconnectFromPubnub(myGlobalData.currentPubnubChannel) audio.play(sfx\_Select) storyboard.gotoScene( "screenStart", "crossFade", 600 ) return true end
Earlier I used 300ms and the I didn’t see Android devices disconnecting!?
Has this something to do with in the “enterScene” in “screenStart” i purge/remove this scene i’m comming from. Maybe the function gets halted before it can exeute??
Any toughts??
Frode