Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

some basic questions concerning Titanium.Android.createServiceIntent and Ti.App.iOS.registerBackgroundService

$
0
0

Application: mobile Titanium SDK: 3.1.1.GA Platform & Version: iOS 6.1.3+, Android HoneyComb+ Device: Android RazrM, iPhone 4 Host OS: OSX 10.8.4 Titanium Studio: build 3.1.1.201306112235

I'm hopeful that I can get a few of my general questions answered without posting a hassle of code. I believe these questions refer to the use of the background services on both iOS and Android.

  1. Why aren't the background services automatically created in a separate thread so that they don't close when the application is closed out of memory? - Titanium's use of the Android Background Service is rendered useless due to the OS's active memory management routines.

  2. Why do functions that run inside setInterval continue to run when the application is placed into background mode? - both Android and iOS - Titanium's use of the iOS background service breaks Apple's policy of only Location and Music services running in background mode in use with the <backgroundModes> setting. Some of us like to have certain functions looping while the application is open. BTW, clearInterval doesn't seem to function inside Titanium either. So with <backgroundModes> setting, setInterval is pretty much off limits.

So how are others getting around this mess?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>