Home/Patches

Fixing gesture “lag” near the screen edge on iOS

By |2020-02-09T17:59:09+10:30February 9, 2020 5:59 pm|Code tips, General tips, Patches, Product highlight, Using APIs|

An enquiry I had from a Hans Jakobsen of EarMaster (brilliant music teaching software for PC, Mac, iPad and iPhone) recently was regarding an apparent "lag" for the OnMouseDown event for controls near the edge of the screen on devices with later versions of iOS. This article poses a workaround for the problem. A [...]

Cross-platform location monitoring

By |2020-01-03T00:14:50+10:30January 3, 2020 12:14 am|Code tips, General tips, Patches|

Previously, I have written two articles on monitoring location changes: one for iOS, and one for Android. This article and the related demo brings everything up-to-date and merges support for both operating systems. STTP (Straight To The Point - I'm coining an acronym to replace TLDR) If you're just after the demo, you may find [...]

Integrating iOS support with Delphi’s FCM

By |2020-01-04T08:29:01+10:30October 2, 2019 7:21 am|Code tips, General tips, Patches|

Before the release of Delphi 10.3.2, Embarcadero released a patch for including FCM (Firebase Cloud Messaging) for Android in your apps, and now that support is included in Delphi 10.3.2. This article describes how to include support for iOS in FCM. UPDATE: With many thanks to Antonello Carlomagno, the iOS implementation now has been [...]

Region monitoring, including background on iOS

By |2016-07-13T18:17:30+10:30July 13, 2016 6:17 pm|Code tips, Patches|

Get started with region monitoring (including in the background) on iOS with some how-to's on fixing the Delphi RTL source for the LocationSensor. In an earlier article, I described some changes you'd need to make in order to make monitoring of location changes work in the background with Delphi 10 Seattle. This article is aimed [...]

Performing background fetches on iOS

By |2017-02-16T18:02:35+10:30June 18, 2016 5:46 pm|Code tips, Patches|

This article relates to any version of Delphi (or at least it should work) that can target iOS 7 or greater. The demo project was created using Delphi 10.1 Berlin. There's been the odd post to the Embarcadero forums as well as on StackOverflow about how to implement background fetches on iOS. Partly because it's [...]

Allowing an iOS app to run in the background

By |2016-05-26T17:31:37+10:30May 26, 2016 5:24 pm|Code tips, Patches|

NOTE: This article is about allowing your iOS app to run when it goes into the background (i.e. another app becomes active) for a short period (up to 3 minutes on iOS 9, at least). It does not relate to having the UIBackgroundModes option, an example of which is here. As some of you will [...]