Versions Compared

Key

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

...

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.

...

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.)

...

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.

Property Name

Type

Default Value

Description

acs-api-key

string

N/A

Arrow API key. Generated when enabling the project for Cloud services.

acs-base-urlstring

https://api.cloud.appcelerator.com

Arrow API URL. DO NOT SET OR MODIFY UNLESS INSTRUCTED TO.
acs-grouped-notification-messagestringN/ASpecifies the message to display for grouped notifications, for example, "You have $number$ unread messages." The $number$ variable represents the number of unread messages. This property is also supported in the strings.xml file under the i18n folder for internationalized versions.

acs-push-api-url

stringhttps://api.cloud.appcelerator.com/Mobile Backend Services dispatcher URL for Android GCM or FCM push notifications. Firebase Cloud Messaging (FCM) is the new version of GCM. DO NOT SET OR MODIFY UNLESS INSTRUCTED TO.
acs-authbase-urlstring

https://secure-identity.cloud.appcelerator.com

OAuth authentication is no longer supported in the ti.cloud module.

Arrow Authentication URL.
acs-oauth-keystringN/AOAuth authentication is no longer supported in the ti.cloud module.

ACS OAuth key. Generated when enabling the project for Cloud services.
acs-oauth-secretstringN/AOAuth authentication is no longer supported in the ti.cloud module.

ACS OAuth secret. Generated when enabling the project for Cloud services.

acs-push-type

string

gcm

Deprecated since Release 3.2.0. The ti.cloudpush module now only supports GCM or FCM. Firebase Cloud Messaging (FCM) is the new version of GCM.

Selects the push notification type for Android devices, either gcm or mqtt.

Google Play Services

As of Titanium 9.0.0, if your Android app includes the ti.playservices module, it will automatically check on app startup if Google Play Services is installed on the device and is up-to-date. If not, it will request the end-user to install or update it before executing the app's main script. This is needed so that the Google Play Services libraries included in the app can function. If you want to disable this feature, then you can do so by setting the following tiapp.xml property to false.

Code Block
linenumberstrue
languagexml
<ti:app>
    <property name="ti.playservices.validate.on.startup" type="bool">false</property>
</ti:app>

Modules

See the Module Developer Guides for Android and iOS.

...