Some events are not dispatched when app runs in background
my android app has timer event fires once every second connect tcp socket (class flash.net.socket) , send request.
a packet sniffer confirms socket in fact connecting, request sent, reply comes , connection closed, happening once per second.
clearly, app in background, timer event occurring every second, because timer handler initating every socket.
but not every closing connection causes close event dispatch, because close handler called less frequently. once in 3 seconds, 8 seconds or longer.
the close dispatches correctly once per second when app in foreground.
why close events being missed when app in background? difference between timer event , close event, causing 1 dispatch correctly not other?
thanks.
More discussions in AIR Development
adobe
Comments
Post a Comment