
URL-адрес в шаблонах электронной почты поступает от courier, курьер генерирует URL-адреса cta, а затем он добавляется к кнопке в шаблоне через
Вот что у меня есть на данный момент:
ассоциация сайтов-приложений Apple
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TeamId.BundleId",
"paths": ["*", "/"]
}
]
}
}
Info.plist
CFBundleURLSchemes
DomainName
FlutterDeepLinkingEnabled
в iOS AppDelegate.swift
import UIKit
import Flutter
import courier_flutter
@UIApplicationMain
@objc class AppDelegate: CourierFlutterDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(
_ application: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
// Handle the incoming URL and pass it to the Flutter engine
if let controller = window?.rootViewController as? FlutterViewController {
let channel = FlutterMethodChannel(name: "BundleId/deeplink", binaryMessenger: controller.binaryMessenger)
channel.invokeMethod("onDeepLinkReceived", arguments: url.absoluteString)
}
return true
}
}
во флаттер маршрутах.dart
GoRoute(
name: NamedRoute.home,
path: '/',
redirect: (context, state) => state.locationWithQuery(
'/dashboard',
),
),
Runner.entitlements
aps-environment
development
com.apple.developer.associated-domains
applinks:domain
com.apple.security.network.client
Подробнее здесь: https://stackoverflow.com/questions/786 ... on-android
Мобильная версия