Вот мой файл делегата < /p>
import Flutter
import UIKit
import app_links
import MobileMessaging
import FBSDKCoreKit
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
// Handle deep links
if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {
AppLinks.shared.handleLink(url: url)
//also try return true here
}
// Initialize Mobile Messaging
MobileMessagingPluginApplicationDelegate.install()
// Initialize Facebook SDK
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
// Handle Facebook deep links
return ApplicationDelegate.shared.application(
app,
open: url,
options: options
)
}
}
< /code>
Я установил FlutterDeepLiningEnabled в False в файле PLIST._linkSubscription = AppLinks().uriLinkStream.listen((uri) {
print('onAppLink: $uri');
print("Path ${uri.toString()}");
if (webViewController != null) {
webViewController!.loadUrl(urlRequest: URLRequest(url: WebUri(widget.initialUrl + uri.path)));
}
});
< /code>
не может поймать ссылки с этой реализацией. < /p>
Как я могу заставить app_links работать вместе с мобилизацией? Конфликты? < /li>
Кто -нибудь столкнулся с этой проблемой, и какие обходные пути существуют?
заранее спасибо!
Подробнее здесь: https://stackoverflow.com/questions/794 ... stalled-on
Мобильная версия