Commit 0d9216b
fix(ios): adopt FlutterSceneLifeCycleDelegate for UIScene deep link support
The plugin only implemented AppDelegate-based lifecycle methods for deep
linking. Since Flutter 3.41 auto-migrates apps to UIScene by default,
UIKit no longer calls application:openURL:options: or
application:continueUserActivity: — routing everything through the scene
delegate instead. This caused deep links to be silently dropped on iOS
apps using Flutter 3.41+.
Fix:
- Adopt FlutterSceneLifeCycleDelegate in AppsflyerSdkPlugin
- Register via [registrar addSceneDelegate:instance] (iOS 13+)
- Add scene:openURLContexts: for warm-start URI-scheme deep links
- Add scene:willConnectToSession:options: for cold-start URI-scheme deep links
- Add scene:continueUserActivity: for Universal Links via UIScene
Verified on iOS 18.4 simulator with Flutter 3.41.4. Both cold-start and
warm-start deep link callbacks now reach the plugin correctly without
requiring any app-side workaround.
Fixes: DELIVERY-114618
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dabf605 commit 0d9216b
2 files changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
947 | 949 | | |
948 | 950 | | |
949 | 951 | | |
950 | | - | |
| 952 | + | |
951 | 953 | | |
952 | 954 | | |
953 | 955 | | |
954 | 956 | | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
955 | 983 | | |
956 | 984 | | |
0 commit comments