Skip to main content

Flight Delay

The Flight Delay DPApp provides flight delay compensation and protection services, allowing users to register flights, verify eligibility, and claim compensation directly within your host app.

User flow

The Flight Delay journey is shown from left to right.

Landing
Flight Delay flow step 1
Verification entry
Flight Delay flow step 2
Sign in
Flight Delay flow step 3
Flight detail
Flight Delay flow step 4
Flight detail
Flight Delay flow step 5
Passenger detail
Flight Delay flow step 6
Confirm detail
Flight Delay flow step 7
Checkout
Flight Delay flow step 8
Payment result
Flight Delay flow step 9

Routes & Parameters

Pages are opened by the host app via DPSDK.open(appId: "flightDelay", ...) (iOS) or DPSDK.getDPApp("flightDelay").open(...) (Android), or navigated internally. Only the pages below can be opened via the SDK — other pages (e.g. Sign in, Payment) are internal flow pages reached from within the app.

PAGE NAMEPATHQuery parametersDescription
Landingflight-delay/landingIntro page for flight delay protection — explains the service and benefits; tapping Get Started opens the registration flow (Verification entry)

Parameters

System parameters

These parameters are required and must always be included when opening the Flight Delay DPApp.

ParameterTypeRequiredDescriptionExample
languagestringtrueUI language of the app; supported values: ar-SA (Arabic, Saudi Arabia), en-US (English, United States), zh-CN (Chinese, China), fr-CA (French, Canada), zh-HK (Chinese, Hong Kong), th-TH (Thai, Thailand), vi-VN (Vietnamese, Vietnam), es-AR (Spanish, Argentina), tr-TR (Turkish, Türkiye), ja-JP (Japanese, Japan), ko-KR (Korean, South Korea), id-ID (Indonesian, Indonesia), zh-TW (Chinese, Taiwan), it-IT (Italian, Italy), uk-UA (Ukrainian, Ukraine), ru-RU (Russian, Russia), sl-SI (Slovenian, Slovenia), nl-NL (Dutch, Netherlands), el-GR (Greek, Greece), hr-HR (Croatian, Croatia), sr-SP (Serbian, Serbia), bs-BA (Bosnian, Bosnia and Herzegovina), sr-ME (Serbian, Montenegro), ro-RO (Romanian, Romania), pl-PL (Polish, Poland), cs-CZ (Czech, Czechia), kk-KZ (Kazakh, Kazakhstan), az-AZ (Azerbaijani, Azerbaijan), ka-GE (Georgian, Georgia), fr-FR (French, France), de-DE (German, Germany), pt-PT (Portuguese, Portugal), en (English) (default: en-US)en-US
tenant_codestringtrueTenant code used for tenant isolation and validating the tenant configuration on the DP Platform0494
action_typestringtrueAccess mode of the session; supported value: operateoperate
channelstringfalseDistribution channel identifier of the host app, used for channel-level configuration and analytics, e.g. standard, eBridge (default: standard)standard
pro_codestringtrueProduct code that determines which product the checkout flow lands onFD0494000001
modulestringtrueBusiness module identifier used for module-level routing and configuration (10 for Flight Delay)10

Prerequisites

  • A registered clientId from the DP Platform — contact us to get one
  • The flightDelay appId configured under your client
  • DP Hybrid SDK integrated into your host app

iOS

Open the Flight Delay DPApp from any UIViewController:

Swift
// From any UIViewController
DPSDK.open(appId: "flightDelay", from: self)

To open a specific page directly (e.g. landing), pass the page path and its query parameters in the params dictionary:

Swift
// Open the landing page (default)
DPSDK.open(appId: "flightDelay", from: self)

// Open the landing page directly
DPSDK.open(
appId: "flightDelay",
params: [
"path": "flight-delay/landing",
"tenant_code": "0494",
"action_type": "operate",
"module": "10",
"language": "en-US",
"pro_code": "FD0494000001",
],
from: self
)

Note: tenant_code, action_type, module, language and pro_code are required system parameters (see System parameters).

Android

Open the Flight Delay DPApp from any Activity or Fragment:

Kotlin
// From any Activity or Fragment
DPSDK.getDPApp("flightDelay").open(this)

To open a specific page directly (e.g. landing), pass the page path to open() and set the query parameters via setExtraUrlParams:

Kotlin
// Open the landing page (default)
DPSDK.getDPApp("flightDelay").open(this)

// Open the landing page directly
val dpApp = DPSDK.getDPApp("flightDelay")
dpApp.setDPAppConfig(
DPAppConfig.Builder()
.setExtraUrlParams(
hashMapOf(
"tenant_code" to "0494",
"action_type" to "operate",
"module" to "10",
"language" to "en-US",
"pro_code" to "FD0494000001",
)
)
.build()
).open(this, "flight-delay/landing")

Reference