android services and ios background mode with rad studio 10 seattle

7
B ACKGROUND EXECUTION Continue running in the background with

Upload: jim-mckeeth

Post on 22-Jan-2018

9.545 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Android Services and iOS Background Mode with RAD Studio 10 Seattle

BACKGROUND EXECUTION

Continue running in the background with

Page 2: Android Services and iOS Background Mode with RAD Studio 10 Seattle

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

Page 3: Android Services and iOS Background Mode with RAD Studio 10 Seattle

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

Page 4: Android Services and iOS Background Mode with RAD Studio 10 Seattle

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

Page 5: Android Services and iOS Background Mode with RAD Studio 10 Seattle

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

Page 6: Android Services and iOS Background Mode with RAD Studio 10 Seattle

DEMONSTRATION TIME

Enough with the slides already!

Page 7: Android Services and iOS Background Mode with RAD Studio 10 Seattle

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