RC Release of Titanium SDK 7.2.0 & CLI 7.0.4

RC Release

GDPR Information

With the enactment of European Union’s General Data Protection Regulation (GDPR), we’ve updated our Privacy Policy and the way Axway collects and processes personal information. We welcome this change and understand the importance of data privacy as a human right. We are taking this opportunity to strengthen our global practices, expanding our robust data privacy practices, and will continue to support data privacy compliance.

For more information, please refer to Axway’s Privacy compliance program.

You can contact the Axway Data Protection Office by sending an email to privacy@axway.com. If you’d like to contact us in writing, see the following list of addresses that best applies to your location:

  • USA: Axway Inc, 6811 E. Mayo Blvd, 4th Floor, Phoenix, AZ 85054, USA
  • EMEA: Axway Software, Tour W, 102 Terrasse Boieldieu – 92807 Puteaux Cedex, FRANCE
  • APAC: Axway Australia, Suite 1301, 99 Mount Street, North Sydney, 2060 NSW, AUSTRALIA

Release Information

Today, we published Release Candidate releases of AMPLIFY™ Titanium SDK and Appcelerator CLI. These are important releases providing features that allow developers to offer end-users the ability to opt-out of analytics to achieve compliance with the GDPR.

This release includes 3 features, 2 improvements and 2 bug fixes. For a more detailed overview, known issues and closed tickets, see the release notes:

Notable Features

  • Analytics opt-out runtime API – We’ve added a feature that allows developers to present the option to opt-in or opt-out of analytics at runtime. This feature will allow developers to provide greater control over data privacy to users of their apps.
  • Data privacy improvements for the CLI – We now allow developers to opt-out of the collection of any CLI usage data. To do so, set with the following command:
    [appc] ti config cli.analytics false To opt back in, you can use: 
    [appc] ti config cli.analytics --remove
  • Other analytics privacy improvements – We made several updates that improve user privacy. See the release notes for details.

Update Appcelerator CLI

To update the CLI components from the command line:

appc use 7.0.4-5

To roll the CLI back:

appc use latest

Update Titanium SDK

To update the SDK from the command line:

[appc] ti sdk install --branch 7_2_X -d

To roll back:

[appc] ti sdk select latest

Implementation Notes

To guide you through the GDPR compliance process for you app, we have created a 7.2.0 Sample App
that demonstrates the usage of the new `optedOut` property as part of `Ti.Analytics`.

Here is a practical example: Let’s assume you have a `Ti.UI.Switch` instance in your app that controls
whether or not the user should opt out of Analytics. By default, the user is opted-in to Analytics.

// Create a switch, default optOut status = `false`
const mySwitch = Ti.UI.createSwitch({ value: false });

// On change, toggle the opt-out property
mySwitch.addEventListener('change', (event) => {
    Ti.Analytics.optedOut = event.value;

// ... More code ...

// Pro-tip: Validate with `Ti.Analytics.optedOut`. Otherwise, if 
// the user opted out, the event will be skipped silently.
if (!Ti.Analytics.optedOut) {
    Ti.Analytics.featureEvent('i_love_gdpr', { really: true });

External Modules

There are many other components of app development that should become GDPR-compliant as well. Some modules that are
already GDPR compliant:

More Questions?

If you have further questions about how GDPR works in Titanium, feel free to open a JIRA ticket
or reach out to us via TiSlack.

Report Bugs

If you run into any issues that seem related to the updates, please report them on JIRA.

First, check if it’s a known issue you can watch. If you can’t find an existing ticket, then create one in the
Appcelerator Community (AC) project and add as much relevant information as you can, including the release version you are using.

You can leave general comments as a reply to this blog post.

Code strong!