This sample is for showing the newest features introduced in Axway Titanium SDK 7.3.0. Of course this is not everything introduced in 7.3.0. Check out the full list of features, bugfixes and improvements in the release notes.
On iOS there are multiple new features that are great.
- Parallax effect, or UIInterpolatingMotionEffect, has been added. This is a
tss
property you can use, no controller changes required. You can see how it works inparallax.tss
. - showsBackgroundLocationIndicator has been added. This property on the
Ti.Geolocation
namespace allows you to show the "blue" bar "App is using your location" when your app has been given the "Always" permission. How it works can be seen in thebackgroundlocationindicator.js
controller. - iPhone X home indicator allows you to control wether or not you can see the home indicator on iPhone X. This is great if you have pages in your app. See how it is implemented in the
iphonexhomeindicator.js
controller.
Support for UserNotifications framework has also been added in 7.3.0. But this is so awesome we decided it needed its own sample app. Check it out: https://github.com/appcelerator-developer-relations/appc-sample-ios-push-notifications
Besides the features above a lot of bugs were fixed too. Obiously, demonstrating this is kind of pointless, so here's the link to the issue list fixed. Release notes
There were also a bunch of improvements made which you can see a little bit further down on the releasenotes.
There is only one Android specific feature displayed in this sample app, which is the Ti.UI.MaskedImage. This functionality was previously iOS only, but now works on Android too. Only a couple samples were added to this app but it should give you an idea what is possible. You can see how it works in maskedImage.tss
.
To experience and test with all MaskedImage properties, head over the the Jira Ticket and download the sample app from there.
Read the docs for more information.
Foreground Services
Another new feature in Android is Foreground services. These allow services to be added to the foreground when apps are in the background. You can read about it in the docs. A sample app for this is coming later.
Besides the features above a lot of bugs were fixed too. Obiously, demonstrating this is kind of pointless, so here's the link to the issue list fixed. Release notes
There were also a bunch of improvements made which you can see a little bit further down on the releasenotes.
Next to iOS and Android specific features there are also 2 new features for both iOS and Android.
zoomLevel
property for Ti.UI.WebView
. For this sample I've just added a timeout
after opening the controller with the webview to demonstrate how it works.
Basically nothing more than $.zoomable.zoomLevel = 2;
(or any other number you want obviously)
Any error you trigger in the application used to have the "Red Screen of Death". This screen is now massively improved with stacktraces. I've made an error on purpose in the app, just run this sample app and click "Trigger an error" to see it. Obviously you need to have a dev build, not a production build, as those errors won't show up there.
This project uses the axway/env-alloy
NPM plugin
to lint the source. You can lint the source yourself using npm run lint
.
Make sure to reach out to the Titanium Slack community for questions or file a JIRA ticket if you run into any issues.
Rene Pot, Axway Appcelerator
Apache 2