scheme : safibank
host: deeplink
Setup Deeplink on FE
file:DeepLinkConfigurations.dart
name in DeepLinkRouteDetails
will be use in the URI path segment.
Without params
DeepLinkRouteDetails( name: 'overdraft-center', route: OverdraftRoutes.overdraftCenter, ),
With params
DeepLinkRouteDetails( name: 'card-detail', route: card_routes.Routes.cardDetail, buildArgument: CardUtils.buildArgumentsForCardDetail, ),
Open Deeplink
From URI
android
adb shell am start -a android.intent.action.VIEW \ -c android.intent.category.BROWSABLE \ -d "safibank://deeplink/card-detail?id=81801839-d99e-47ad-9ac3-5b6e230fd6b0"
ios
xcrun simctl openurl booted safibank://deeplink/demo-uikit
From Push Notif
BE need to add field deepLink in data payload
{ "extras": { "push": { "notification": { "title": "Title", "body": "Body" }, "data": {"deepLink":"safibank://deeplink/overdraft-center"} } } }