You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - first, this article and the examples here were extremely helpful to me, thank you!
I think one small detail is missing on the iOS implementation. In the platform method channel handler, when the "initialLink" method is called - it is not returning any value.
I believe what needs to happen, to handle deep links that launch the app, is to add this line in the didFinishLaunchingWithOptions function in AppDelegate, to capture any initial link url:
letinitialLink=launchOptions?[.url]as?String
Then, inside the setMethodCallHandler, as long as it passes the existing guard statement (the "initialLink" method check), return a result with this initialLink value.
Hi - first, this article and the examples here were extremely helpful to me, thank you!
I think one small detail is missing on the iOS implementation. In the platform method channel handler, when the "initialLink" method is called - it is not returning any value.
The code in question is here https://github.com/DenisovAV/deep_links_flutter/blob/master/ios/Runner/AppDelegate.swift#L23
I believe what needs to happen, to handle deep links that launch the app, is to add this line in the
didFinishLaunchingWithOptions
function inAppDelegate
, to capture any initial link url:Then, inside the
setMethodCallHandler
, as long as it passes the existingguard
statement (the "initialLink" method check), return a result with this initialLink value.The text was updated successfully, but these errors were encountered: