Background tasks (multitasking)
Posted: Tue Jan 11, 2011 10:48 pm
Hello,
It seems like livecode doesn't support this yet, but I wanted to check to see if anyone had any successes or has heard anything about development of background tasks or multitasking on iOS. I'm talking specifically about a few scenarios:
1. Specific background tasks, eg. updating location in the background. In XCode, this is accomplished by setting the following:
This allows the app to register with the OS that it would like to keep updating location in the background, and the app then receives locationChanged events while not running. This can also be useful for audio or telephony.
2. Notifications. Obviously push notifications would be great, but local notifications are extremely useful as well, and could be implemented with much less effort. This seems undoable entirely unless LiveCode adds this functionality.
3. Task completion. The ability to finish a task (eg., a download) when someone hits the home button.
4. Updating while the screen is off. If I turn off the iPhone with the top button, will LiveCode continue to execute? It seems to function for a period of time right now, but it would be great if it could be persistent.
While task 2 seems the least possible right now, does anyone know of a way to manually modify the Info.plist to add the UIBackgroundModes key/value pair? It seems like it might allow location updates in the background (although, without notifications support, it might not do a whole lot.), but when I try to change the Info.plist file by hand in the bundle, it of course causes the certification of the app to fail when installing...
It seems like livecode doesn't support this yet, but I wanted to check to see if anyone had any successes or has heard anything about development of background tasks or multitasking on iOS. I'm talking specifically about a few scenarios:
1. Specific background tasks, eg. updating location in the background. In XCode, this is accomplished by setting the following:
Code: Select all
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>
2. Notifications. Obviously push notifications would be great, but local notifications are extremely useful as well, and could be implemented with much less effort. This seems undoable entirely unless LiveCode adds this functionality.
3. Task completion. The ability to finish a task (eg., a download) when someone hits the home button.
4. Updating while the screen is off. If I turn off the iPhone with the top button, will LiveCode continue to execute? It seems to function for a period of time right now, but it would be great if it could be persistent.
While task 2 seems the least possible right now, does anyone know of a way to manually modify the Info.plist to add the UIBackgroundModes key/value pair? It seems like it might allow location updates in the background (although, without notifications support, it might not do a whole lot.), but when I try to change the Info.plist file by hand in the bundle, it of course causes the certification of the app to fail when installing...