how to continue scheduled sync even when application in sleep mode


hi all,

 

how can make sure our application continue active in sleep mode?

 

i assigned feature our ios mobile application can periodically update user's current geolocation onto remote database.

 

it works fine when mobile devices in activate mode. timer expire event fired -> grab newest geolocation -> send database.

 

however, did not work @ when devices went sleep mode. depending on when/where devices went sleep, code stopped @ different points. like, timer expire event never fired. synch database stops in middle. sniffer gps events never return. etc.

 

i tried use nativeapplication.nativeapplication.executeinbackground = true mentioned in (http://forums.adobe.com/message/4386837). however, flashbuilder compliented can not find executeinbackground property. (my flash builder 4.6, air application 3.1). tried -swf-version=16 , air application set 3.3 , did not help.

 

first question: executeinbackground right solution for solving problem? document, sounds continue executation not garanteed.

 

second question: executeinbackground issue, how can pass runtime error.

 

third question: there better way implement type of activities?

 

thanks in advance,



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support