I also developed an application that is currently installed as "Location based", so that it can run in the background endlessly. This is not the trick I need to do things when the user moves. After some searching, I found out that this application will execute only the code in case of a change of location, no timer will be able to execute any code in 10 minutes.
My application, while in the background, remains connected to XMPP for 50 minutes or so, then shuts down. I would like the application to never shut down, I looked at the framework, but I canβt find a place to fix this behavior. You know, is it possible to stay in touch "indefinitely"? if so, what settings do I need to change in xmppframework.
thanks
[EDIT] After 50 minutes, the user is still connected to XMPP, but disconnected from the XMPPROOM that was connected. On another launch, it was connected for 3 hours, the iPhone connection time does not seem consistent.
source share