Вот что у меня есть:ассоциация сайтов-приложений Apple
Код: Выделить всё
{
"applinks": {
"apps": [],
"details": [
{
"appID": "TeamId.BundleId",
"paths": ["*", "/"]
}
]
}
}
Код: Выделить всё
CFBundleURLSchemes
DomainName
FlutterDeepLinkingEnabled
Код: Выделить всё
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
}
}
Код: Выделить всё
GoRoute(
name: NamedRoute.home,
path: '/',
redirect: (context, state) => state.locationWithQuery(
'/dashboard',
removeKeys: [
QueryStringParams.code,
QueryStringParams.state,
QueryStringParams.error,
QueryStringParams.errorDescription,
],
),
),

P.S. У меня есть шаблон электронной почты, который я получаю в Gmail, в нем есть кнопка, нажатие на которую вызывает срабатывание
Подробнее здесь: https://stackoverflow.com/questions/786 ... on-android
Мобильная версия