Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2632] Allow background mode specification in tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:39.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M07
ComponentsiOS
Labelsbackground, feature, ios, release-1.6.0, tiapp
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:25:22.000+0000
Updated2011-04-17T01:59:39.000+0000

Description

In tiapp.xml, we need to allow specification for background modes that are allowable in the Info.plist. Should be an easy mod since background modes could occur within the tag and then be processed that way. Going to have to work with the Android team on it, maybe.

Attachments

FileDateSize
tiapp.xml2011-04-15T03:25:22.000+00001301

Comments

  1. Jeff Haynie 2011-04-15

    (from [d20ef35d707cc3985cc0f60b9aa31f1faeb8adb9]) [#2632 state:fixed-in-qa] Addition of to in tiapp.xml. https://github.com/appcelerator/titanium_mobile/commit/d20ef35d707cc3985cc0f60b9aa31f1faeb8adb9"> https://github.com/appcelerator/titanium_mobile/commit/d20ef35d707c...

  2. Stephen Tramer 2011-04-15

    To test:

    • Create a new titanium project, 'bgmodes'
    • Copy KS 'Resources' into its resources
    • Replace 'tiapp.xml' with the attached tiapp.xml
    • Run 'Phone->Sound->Local' and click 'play'
    • Put the app in the background, sound should continue playing

    Also:

    • Check Info.plist file -- Should have UIBackgroundModes key with two values in array: audio, location
  3. Pedro Enrique 2011-04-15

    Replaced KS tiapp.xml with the one provided by Stephen Tramer.
    Checked build/iphone/Info.plist and UIBackgroundMode key has two values: audio, and location.

    Tested on iPhone 4 (4.2.1) and works as expected: music plays while app is in the background

    Ti SDK 1.6 (Jan 25 2011 17:39 r1ead074f)

JSON Source