android services and ios background mode with rad studio 10 seattle
TRANSCRIPT
BACKGROUND EXECUTION
Continue running in the background with
Two Platforms – Two Options
Android
• Android Services
• Separate binary from app
• 4 different types of Background Service
• Wizard in the IDE
• Object Pascal only (for now)
iOS
• Background execution mode– UIBackgroundModes
– In Info.plist
– 9 different modes
• App continues executing (Same binary)
• C++ and Object Pascal
iOS Background Mode
• Modifies the Info.plist
• Project > Options > Version Info > UIBackgroundModes
• Specifies provided service(s) and requests background execution
• Possible modes– audio, location, voip, fetch, remote-notification,
newsstand-content, external-accessory, bluetooth-central, bluetooth-peripheral
– http://embt.co/UIBackgroundModes
Android Services (Object Pascal Only – for now)
• Create a service to run in the background
• Runs even when app is closed
• A separate binary in bundle
• External services are also accessible from other apps
• Service is separate project from app
• App can contain multiple services
4 Different Android Service Types
• Local Service
• Intent Local Service
• Remote Service
• Intent Remote Service
• Local: Only accessible from host app
• Intent: Host app can send intents to service for asynchronous calls
• Remote: Published for external access as well
DEMONSTRATION TIME
Enough with the slides already!
More Information
• iOS Background Modes– http://embt.co/UIBackgroundModes
• Android Services Overview– docwiki.embarcadero.com/RADStudio/Seattle/en/Android_Service
• Android Services Guide– docwiki.embarcadero.com/RADStudio/Seattle/en/Creating_Android_Services
• Blog posts– delphi.org/tag/android-services