Titanium News #10
Tags: titanium, mobile, tidev, news
Published: 2022-08-20 09:54:12

<small>Older posts can be found [here](https://dev.to/miga).</small>

It has been a while since [Ti 11.0.0.GA](https://titaniumsdk.com/guide/Titanium_SDK/Titanium_SDK_Release_Notes/Titanium_SDK_Release_Notes_11.x/Titanium_SDK_11.0.0.GA_Release_Note.html) was released and in this Titanium News I'll show some recent updates that have been merged into the SDK or are waiting for testing.

Also some news about **Android 13** and **iOS 16** support.

## Titanium SDK

**viewShadowColor parity**

![shadow color](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rz9ijbnbfot0cpf9cjf.png)

You can now just use `v1.viewShadowColor = "yellow";` on Android to apply a color to the `elevation` shadow. Before you had to set an entry in your theme. Makes it easier to set it! A full example is available [here](https://github.com/tidev/titanium_mobile/pull/13457).

**updated support libraries**
Some internal Android libraries are raised to a higher version: Material Lib 1.6.1, AppCompat 1.4.2, Media 1.6.0, Play-Services-location 19.0.1 to name a few. Check the [PR](https://github.com/tidev/titanium_mobile/pull/13473) for other infos.

**Parity for Ti.UI.ListViewScrollPosition**
On iOS you could use `position:top` in `ListView.scrollToItem()`. Now Android has the same feature. [Full example](https://github.com/tidev/titanium_mobile/pull/13251).

**Scroll state restoration**
In this [PR](https://github.com/tidev/titanium_mobile/pull/13493) a fix was added to the Android Listview that will keep the current position when you attach more items.

**New events when moving items in a Listview**
`movestart` and `moveend` events will fire now when you edit a Listview. [Full example](https://github.com/tidev/titanium_mobile/pull/13507)

**headingTime for compass updates**
You can set `headingTime` on Android now to get smoother compass updates. The current default is 250ms. Keep in mind that you can't go lower than 200ms or you have to add the `HIGH_SAMPLING_RATE_SENSORS` permission. Infos by [Google](https://developer.android.com/about/versions/12/behavior-changes-12#motion-sensor-rate-limiting) and the [PR with an example](https://github.com/tidev/titanium_mobile/pull/12923)

**continuousUpdate for ListViews**
continuousUpdate for ListViews was merged into the SDK master ([PR + example](https://github.com/tidev/titanium_mobile/pull/13095)). If you enable it scrolling will fire every time a new item/section is at the top not only when you change the direction.

**iOS 16 updates**
Two fixes for iOS 16 were merged in [fix tabgroup layout on iOS 16+](https://github.com/tidev/titanium_mobile/pull/13522) and [fix navigation items in tab group layout](https://github.com/tidev/titanium_mobile/pull/13530)

**Android 13**
If you have an Android 13 device already and want to do some testing: [Titanium SDK that targets Android 13](https://github.com/tidev/titanium_mobile/actions/runs/2866447399) and a [FCM module](https://github.com/hansemannn/titanium-firebase-cloud-messaging/pull/141) that will show the new push permission request. Testing helps us to check for bugs and release those changes quicker! _Side node:_ push still works on Android 13 devices with Titanium 11.0.0.GA!

## Modules

* Hans released his premium `Titanium In App Purchasing` module for free! You can find it at https://github.com/hansemannn/titanium-iap

* Firebase Push module update: https://github.com/hansemannn/titanium-firebase-cloud-messaging/releases with updated fcm libraries and support for Parse/Sashido notification.

* A info.plist file reader by [@Max87ZA](https://github.com/Max87ZA) https://github.com/Max87ZA/ti.plistreader

* Zendesk messaging module for Titanium: https://github.com/m1ga/ti.zendesk

* Update to the Ti.Thermalprinter module to use USB printers https://github.com/m1ga/ti.thermalprinter/

* extend Androids BottomNavigation with custom views https://github.com/m1ga/ti.bottomNavView

* PurgeTSS was updated https://purgetss.com/ for the release notes check https://github.com/macCesar/purgeTSS/releases


There are multiple pull request waiting in line. A full list is available at https://github.com/tidev/titanium_mobile/issues/13411
Many updates to docs, module library updates, bug fixes. So there is still a lot to look forward in Titanium :smile: You can help by testing those PRs or even by contributing to the SDK or modules yourself!

## Tutorials
I've extended my [from zero to app](https://fromzerotoapp.com) tutorials:
* [Optimize Android app performance](https://fromzerotoapp.com/optimize-android-app-performance/)
* [Using Android 13 “per app” language with Titanium](https://fromzerotoapp.com/using-android-13-per-app-language-with-titanium/)

## That's it

If you have feedback or some interesting Titanium apps, modules or widgets you would like to share: get in contact with me or leave a comment and I'll add it to the next `Titanium news`.