/Code tips

Firebase Cloud Messaging, revisited

By |2018-10-31T11:57:45+00:00August 12, 2018 5:41 pm|Code tips, General tips|

A little over a year ago, I posted a two part article about integrating Firebase Cloud Messaging in your Delphi mobile apps. This time, it's a single part article because much of the work is done for you, or is simplified. The code in this article was built and tested using an install of [...]

Connectivity checker for mobile, revisited

By |2018-07-15T15:07:05+00:00July 15, 2018 3:07 pm|Code tips, General tips|

Nearly 5 years ago I wrote an article for checking whether a mobile device has an internet connection. This article revisits that solution, dropping the "less-used" functionality, however it also gains an important feature. The code and demo for this article was written and tested on Delphi Tokyo 10.2.3, however it should work on earlier [...]

Monitoring location updates on Android

By |2018-01-19T19:14:51+00:00January 19, 2018 6:52 pm|Code tips, General tips, Using APIs|

Monitoring location updates on Android in a consistent fashion (e.g in a service, and while the screen is locked) can be quite a challenge. This article tackles the problem head-on The code discussed in this article was designed using Delphi 10.2 Tokyo Release 2, however it should at least work on Berlin, and possibly [...]

Making cross-platform apps with Delphi is easy

By |2017-10-27T06:33:30+00:00May 15, 2017 8:38 pm|Code tips, General tips, Uncategorized, Using APIs|

Developing software with Delphi is easy regardless of "cross-platformness", relatively speaking, in comparison to other tools I've used, however this article shows how insanely easy it can be to put together an application that runs on iOS, Android, Windows and MacOS. UPDATE: Developer Jerry Dodge has alerted me to this project of his, called [...]

Handling Firebase Cloud Messaging on Android and iOS

By |2017-05-21T08:19:50+00:00April 6, 2017 2:05 pm|Code tips, General tips|

Discover how to handle push notifications sent from Firebase Cloud Messaging (FCM) for Android and iOS UPDATE: For anyone who has downloaded the demo prior to May 17th, 2017, there have been 2 changes: A UseSandbox property has been added to TPushClient, that determines whether the registration is for test apps, and activation of [...]

Handling the new iOS 10 privacy settings

By |2018-11-01T18:54:39+00:00September 21, 2016 5:14 pm|Code tips|

With the introduction of iOS 10, a number of privacy settings need to be handled in your Delphi apps. You may have arrived at this post because you've installed Delphi 10.1 Berlin Update 1, installed Xcode 8 on your Mac, added the iOS 10 SDK to Delphi, recompiled your app that uses the camera [...]

Checking if wifi is enabled on iOS

By |2017-05-09T21:09:18+00:00July 25, 2016 7:29 pm|Code tips|

Here I present some simple code to check if wifi is enabled on iOS, which could be used to alert the user if your application uses location services. One of my most visited posts is from 3 years ago, which has some demo code for checking whether the internet is accessible from the device. The [...]

Region monitoring, including background on iOS

By |2016-07-13T18:17:30+00:00July 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 [...]

Show Buttons
Hide Buttons