issue #1: AIR [desktop] application stops running after semi-long periods of time (frm 1h to 1night)
Good day guys,
I'm having this veeeery bad [system] issue that I'm unable to understand:
my AIR application [mac_desktop only at the moment] stops running after semi-long periods of time (from 1h to 1 night) -> till I click on its dock icon on my Mac, which seems to reactive the application core - and my app from its boot[1]).
[1] in t0 the app (re)connects to my application server - connection that in the meanwhile was lost because the flash client disappeared to the server - and starts to (re)load a set of external swf modules from my web repository to (re)launch its service
Since the time needed to fall in the behaviour is very long, this should not be related to:
1. NativeApplication.nativeApplication.systemIdleMode=SystemIdleMode.KEEP_AWAKE, which I put as first istruction of the constructor of the first class of the desktop [external component loader] App
and:
2. today I don't care of Event.DEACTIVE from my NativeApplication singletone since at this building time my App is expected to work in the same manner when looses the OS focus as when it has it. Is it correct and is it enought - not carying the event condition? (see the 1 above) Or may be am I missing something to tell AIR core to keep my App working in background for_ever like it would be in foreground and till the App wants? (see 1 above again)
please note that:
a) my App is something like an instant messanger and needs of course to be always at 100% running, both in background and in foreground
b) I want to be able to make videoconferencing at top performance also while moving OS focus on other applications, and most of the time I receive conference calls of course when my Application is not in focus
c) my App have to react _in realtime_ to some server notifications with or without OS focus
d) in all the other cases my App does use CPU at the minimum just answering to my application server datachannel pings. What I expect from AIR/desktop should be a normal manner to design native service applications
3. user idle mode should not be an issue even it seems something related (or related to some OS idle time -- see 1 above again): relative to what I learnt, user idle mode is usefull to be detected by apps but should not involve the background/foreground AIR application core working model (isn't it correct?) so my App do not use this useful event.
I read a lot on google for days but strangely I can't find an equivalent issue from any other developer at least at recent times (AIR 3.8+). May be I'm missing something, so I decided to ask for help @ Adobe Forums (does anybody already did a real-life-working multiplatform videocollaboration/instant messenger app with Flash/AIR? ps Unicom by Adobe seems to be just an old 2011-abandoned(?) project).
Please not that I'm not yet working with AIR for Android or for iOS (I read some old issues related to this topic but ONLY about the mobile platforms.. and they are not YET my topic), I'm just still working only at a first alpha of my app for the Mac (and its equivalent for the Web).
Let's say I'm still at the beginning on building the App: I'm testing AIR in-background stability, h264 codec and the enhanced microphone support (..), the rtmfp protocol and some more while improving my semi-recent AS3 knowledgebase and while making the basement of the Application... but I make this kind of apps since 2002/AS1.
ps today I never close the native window of the Application and I do not use awalysInFront: today the app simply goes beyond the other application windows (and in the future I will visible=false the native windows at user request)
any help direction, guys? It is terrible.
mc
ps Let's say that Flash Player 6 (Flash MX)
was used to work perfectly instead (on the web and when installed as Windows Active Desktop web component at the Windows XP times) even it was not AVM2 (jump that I love).
