Exploring FireMonkey: A Guide to the Best Delphi FMX Samples
// Setup camera position for better view Camera.Position.Point := TPoint3D.Create(0, 5, 20); Camera.Target := TPoint3D.Create(0, 0, 0);
Mobile development is nothing without hardware integration. Delphi provides wrapper components that make "coding to the metal" surprisingly simple. The Samples: LocationDemo and CameraComponent.
Pitfall #4: TWebBrowser Doesn't Load Local Files
Cause: iOS sandboxing and Android file:// restrictions.
Fix: Look for a sample that uses TWebBrowser.Navigate with a custom TURIHandler. The correct method is to load HTML as a string using LoadFromStrings or host a local web server.
2.9. Notifications and Background Services
Why you need it: Mobile apps need push notifications.
Key sample: NotificationDemo – uses TNotificationCenter and platform-specific entitlements (Apple Push Notification Service, Firebase Cloud Messaging).
Lesson learned: Notifications require an HTTPS backend and device tokens. The sample shows local notifications, but it also includes commented code for remote pushes.