Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleExample: tiapp.xml
linenumberstrue
languagexml
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id>com.appcelerator.helloWorld</id>
    <name>helloWorld</name>
    <version>1.0.1</version>
    <icon>appicon.png</icon>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>GUID</guid>
	<ios>
        <plist>
            <dict>
		        <key>UISupportedInterfaceOrientations~iphone</key>
                <array>
			        <string>Ti.UI.PORTRAIT</string>
		        </array>
		        <key>UISupportedInterfaceOrientations~ipad</key>
                <array>
			        <string>Ti.UI.PORTRAIT</string>
			        <string>Ti.UI.UPSIDE_PORTRAIT</string>
			        <string>Ti.UI.LANDSCAPE_LEFT</string>
			        <string>Ti.UI.LANDSCAPE_RIGHT</string>
		        </array>
            </dict>
        </plist>
	</ios>
	<android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>10</tool-api-level>
        <abi>all</abi>
	</android>
    <mobileweb>
        <splash>
            <enabled>true</enabled>
            <inline-css-images>true</inline-css-images>
        </splash>
        <theme>default</theme>
    </mobileweb>
	<modules/>
</ti:app>
Note

A note about encryption and tiapp.xmltiapp.xml properties are encrypted when building the app for production.

...

Code Block
titleExample: Specify the project only supports Android targets
linenumberstrue
languagexml
<deployment-targets>
    <target device="android">true</target>
    <target device="ipad">false</target>
    <target device="iphone">false</target>
    <target device="mobileweb">false</target>
</deployment-targets>

description

...

Whether or not the application will start by taking up the entire screen and remove the status bar. Default is false.

Since Release 5.0.0, on Android, the theme will be set to Theme.AppCompat.NoTitleBar.Fullscreen.

icon

The application icon's filename. This file should be relative to the application's Resources directory, or alternatively, can also live under a platform-specific folder, such as Resources/iphone or Resources/android.

...

Whether or not the navigation bar is hidden for this application. Default is false.

Supported since Release 5.0.0 for Android. On Android, the theme will be set to Theme.AppCompat.NoTitleBar unless fullscreen or statusbar-hidden is set to true.this will remove the top action/title bar.

plugins

This element includes subelements of plugins to include with the project.

...

Code Block
titleExample: Include the Alloy plugin
languagexml
<plugins>
    <plugin version="1.0">ti.alloy</plugin>
</plugins>

property

See Application properties below.

publisher

The publisher of this application.

...

Only supported on Android.  Set to true to set the theme to Theme.AppCompat.NoTitleBar.Fullscreen. Will remove the top status bar if set true. Default is false.

sdk-version

...

Deprecated elements

...

Android also supports a number of application properties for various internal settings. (See Application properties above on how to define an application property.)

...

To request a large heap size on Android 3.x and later, set the android:largeHeap  property of the <application> attribute to true. Requires API level 11 or higher.  Note that you are not guaranteed a fixed increase in available memory, because some devices are constrained by their total available memory.

...

Not all keys are supported at this time. See Unsupported Info.plist Keys for a list of keys that may not be overridden in the tiapp.xml file.

...

Prior to release 2.1, iOS-specific settings were contained in an  <iphone> element. These settings are deprecated and should be replaced with the corresponding iOS settings listed in the iOS specific section. It will be removed in Titanium SDK 7.0.0 and later.

  • <orientations device="device"> : Restricts the device to these orientations when the application is running. The value of "device" can be "iphone", or "ipad". Deprecated in Release 2.1, use UISupportedInterfaceOrientations instead.
    • <orientation> : An orientation for this <orientations> list, valid values are: Ti.UI.PORTRAITTi.UI.UPSIDE_PORTRAITTi.UI.LANDSCAPE_LEFTTi.UI.LANDSCAPE_RIGHT.
  • <backgroundModes> : A list of background modes this app supports. Deprecated in Release 2.1, use UIBackgroundModes instead.
    For a BackgroundService to run for more than a limited period of time, the application must include the  <backgroundModes> element in tiapp.xml.
    • <mode> : A background mode, valid values are: audiolocation, and voip.
  • <requires> : A list of features this app requires. Deprecated in Release 2.1, use UIRequiredDeviceCapabilitiesinstead.
    • <feature> : A feature that this app requires, valid values are: telephonywifismsstill-cameraauto-focus-camerafront-facing-cameracamera-flashvideo-cameraaccelerometergyroscopelocation-servicesgpsmagnetometergamekitmicrophoneopengles-1opengles-2armv6armv7peer-peer

...

Mobile Backend Services uses the following Application properties to configure a Titanium project to use Mobile Backend Services.  If a deployment-specific setting is provided (production or development) then that value will be used for the current deployment environment.  To specify a deployment-specific settings add the suffix -development or -production to the property name, for example, acs-api-key-development and acs-api-key-productions are the deployment-specific settings for acs-api-key.

...