firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.67k stars 3.97k forks source link

🐛 [firebase_dynamic_links] Applinks not working on iOS 14 #3702

Closed Lzyct closed 2 years ago

Lzyct commented 4 years ago

Bug report

Describe the bug Dynamic link not working on iOS 14, i was test with iOS <14 and app direct to apps , but in iOS 14 not. It's currently happen when i'm open link from safari, but when i'm trying to open using

xcrun simctl openurl booted https://www.xxxx.com/products it's directly open app

Steps to reproduce

Steps to reproduce the behavior:

  1. Open dynamic link on safari
  2. Browser direct to alt url, it's should direct to apps

Expected behavior

It's should working like iOS <14


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` ╰─ flutter doctor -v [✓] Flutter (Channel dev, 1.23.0-4.0.pre, on Mac OS X 10.15.7 19H2 x86_64, locale en-ID) • Flutter version 1.23.0-4.0.pre at /Users/ukietux/Library/flutter • Framework revision 83dd176777 (8 days ago), 2020-09-22 12:04:44 -0700 • Engine revision 2abe69c608 • Dart version 2.10.0 (build 2.10.0-136.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/ukietux/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • ANDROID_HOME = /Users/ukietux/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 12.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.0.1, Build version 12A7300 • CocoaPods version 1.9.3 [✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 49.0.2 • Dart plugin version 193.7547 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [✓] VS Code (version 1.49.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.14.1 [✓] Connected device (2 available) • Anfas iPhone (mobile) • 5a8fcc6bb435b3549abe6befd251dfadbcaff60b • ios • iOS 14.0 • iPhone 11 Pro (mobile) • 16EEE674-DA94-4065-ACFE-770C0DEA3936 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator) • No issues found! ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` Changing current working directory to: /Users/ukietux/Workspace/Mobile/Flutter/hapus/hakken-flutter/hakken Dart SDK 2.10.0-136.0.dev Flutter SDK 1.23.0-4.0.pre hakken 1.86.0 dependencies: - badges 1.1.1 [flutter] - connectivity 0.4.9 [flutter meta connectivity_platform_interface connectivity_macos connectivity_for_web] - cupertino_icons 0.1.3 - dio 3.0.9 [http_parser path] - dio_http_cache 0.2.8 [flutter quiver json_serializable json_annotation dio sqflite path crypto] - firebase_core 0.4.5 [firebase_core_platform_interface flutter meta firebase_core_web] - firebase_crashlytics 0.1.4+1 [flutter stack_trace] - firebase_dynamic_links 0.5.3 [flutter] - firebase_messaging 6.0.16 [meta platform flutter] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_countdown_timer 1.1.0 [flutter] - flutter_holo_date_picker 0.2.0 [flutter] - flutter_html 0.11.1 [html flutter] - flutter_launcher_icons 0.7.5 [image args yaml] - flutter_local_notifications 1.4.4+4 [flutter platform flutter_local_notifications_platform_interface] - flutter_shimmer 1.3.0 [flutter] - flutter_slidable 0.5.5 [flutter] - flutter_spinkit 4.1.2+1 [flutter] - flutter_web_browser 0.11.0 [flutter] - flutter_youtube_view 1.1.9 [flutter] - fluttertoast 4.0.1 [flutter flutter_web_plugins] - get_it 4.0.4 [async meta] - google_fonts 1.1.0 [flutter http path_provider crypto pedantic] - grouped_buttons 1.0.4 [flutter] - http 0.12.2 [http_parser path pedantic] - intl 0.16.1 [path] - liquid_pull_to_refresh 2.0.0 [flutter] - meta 1.3.0-nullsafety.2 - neumorphic 0.4.0 [flutter characters] - page_indicator 0.3.0 [flutter] - rflutter_alert 1.0.3 [flutter] - rxdart 0.23.1 - scoped_model 1.0.1 [flutter] - share 0.6.4+3 [meta flutter] - shared_preferences 0.5.8 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web] - simple_animations 2.2.1 [flutter sa_multi_tween sa_anicoto sa_stateless_animation sa_v1_migration] - sqflite 1.3.1 [flutter sqflite_common path] - stripe_payment 1.0.7 [flutter] - url_launcher 5.5.0 [flutter url_launcher_platform_interface url_launcher_web url_launcher_linux url_launcher_macos] - webview_flutter 0.3.22+1 [flutter] dev dependencies: - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data] transitive dependencies: - _fe_analyzer_shared 6.0.0 [meta] - analyzer 0.39.15 [_fe_analyzer_shared args charcode cli_util collection convert crypto glob html meta package_config path pub_semver source_span watcher yaml] - archive 2.0.13 [crypto args path] - args 1.6.0 - async 2.5.0-nullsafety [collection] - boolean_selector 2.1.0-nullsafety [source_span string_scanner] - build 1.3.0 [analyzer async convert crypto logging meta path glob] - build_config 0.4.2 [checked_yaml json_annotation meta path pubspec_parse yaml] - characters 1.1.0-nullsafety.2 - charcode 1.2.0-nullsafety - checked_yaml 1.0.2 [json_annotation source_span yaml] - cli_util 0.1.4 [path] - clock 1.1.0-nullsafety - collection 1.15.0-nullsafety.2 - connectivity_for_web 0.3.1 [connectivity_platform_interface flutter_web_plugins flutter] - connectivity_macos 0.1.0+3 [flutter] - connectivity_platform_interface 1.0.6 [flutter meta plugin_platform_interface] - convert 2.1.1 [charcode typed_data] - crypto 2.1.4 [collection convert typed_data] - csslib 0.16.2 [source_span] - dart_style 1.3.6 [analyzer args path source_span] - fake_async 1.1.0-nullsafety [clock collection] - file 5.2.1 [intl meta path] - firebase 7.3.0 [http http_parser js] - firebase_core_platform_interface 1.0.4 [flutter meta plugin_platform_interface quiver] - firebase_core_web 0.1.1+2 [firebase firebase_core_platform_interface flutter flutter_web_plugins meta js] - flutter_local_notifications_platform_interface 1.0.1 [flutter plugin_platform_interface] - flutter_web_plugins 0.0.0 [flutter characters collection meta typed_data vector_math] - glob 1.2.0 [async collection node_io path pedantic string_scanner] - html 0.14.0+3 [csslib source_span] - http_parser 3.1.4 [charcode collection source_span string_scanner typed_data] - image 2.1.12 [archive xml] - js 0.6.2 - json_annotation 3.0.1 - json_serializable 3.3.0 [analyzer build build_config json_annotation meta path source_gen] - logging 0.11.4 - matcher 0.12.10-nullsafety [stack_trace] - node_interop 1.1.1 [js] - node_io 1.1.1 [node_interop path] - package_config 1.9.3 [path charcode] - path 1.8.0-nullsafety - path_provider 1.6.11 [flutter path_provider_platform_interface path_provider_macos path_provider_linux] - path_provider_linux 0.0.1+2 [path xdg_directories path_provider_platform_interface flutter] - path_provider_macos 0.0.4+3 [flutter] - path_provider_platform_interface 1.0.2 [flutter meta platform plugin_platform_interface] - pedantic 1.9.0 - petitparser 2.4.0 [meta] - platform 2.2.1 - platform_detect 1.4.0 [meta pub_semver] - plugin_platform_interface 1.0.2 [meta] - process 3.0.13 [file intl meta path platform] - pub_semver 1.4.4 [collection] - pubspec_parse 0.1.5 [checked_yaml json_annotation pub_semver yaml] - quiver 2.1.3 [matcher meta] - sa_anicoto 1.0.2 [flutter supercharged] - sa_multi_tween 1.1.1 [flutter supercharged] - sa_stateless_animation 1.0.1 [flutter supercharged sa_anicoto] - sa_v1_migration 1.1.2 [flutter] - shared_preferences_linux 0.0.2+1 [file flutter meta path path_provider_linux shared_preferences_platform_interface] - shared_preferences_macos 0.0.1+10 [shared_preferences_platform_interface flutter] - shared_preferences_platform_interface 1.0.4 [meta flutter] - shared_preferences_web 0.1.2+7 [shared_preferences_platform_interface flutter flutter_web_plugins meta] - sky_engine 0.0.99 - source_gen 0.9.6 [analyzer async build dart_style glob meta path pedantic source_span] - source_span 1.8.0-nullsafety [charcode collection path term_glyph] - sqflite_common 1.0.2+1 [synchronized path meta] - stack_trace 1.10.0-nullsafety [path] - stream_channel 2.1.0-nullsafety [async] - string_scanner 1.1.0-nullsafety [charcode source_span] - supercharged 1.9.0 [supercharged_dart flutter] - supercharged_dart 1.1.0 - synchronized 2.2.0+2 - term_glyph 1.2.0-nullsafety - test_api 0.2.19-nullsafety [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher] - typed_data 1.3.0-nullsafety.2 [collection] - url_launcher_linux 0.0.1+1 [flutter] - url_launcher_macos 0.0.1+7 [flutter] - url_launcher_platform_interface 1.0.7 [flutter meta plugin_platform_interface] - url_launcher_web 0.1.2+1 [url_launcher_platform_interface platform_detect flutter flutter_web_plugins meta] - vector_math 2.1.0-nullsafety.2 - watcher 0.9.7+15 [async path pedantic] - xdg_directories 0.1.0 [path process flutter] - xml 3.6.1 [collection convert meta petitparser] - yaml 2.2.1 [charcode collection string_scanner source_span] ```

RaashVision commented 4 years ago

Same here

okayfine commented 4 years ago

its working for me on iOS 14 Simulator Screen Shot - iPhone SE (2nd generation) - 2020-09-28 at 20 23 46 Simulator Screen Shot - iPhone SE (2nd generation) - 2020-10-05 at 16 12 12 the issue I'm facing is that I'm unable to clear the dynamic link from the app lifecycle, it keeps pushing the screen view.

RaashVision commented 4 years ago

My dynamic link working in ios 14 too. If using custom domain you HV to do some extra stuff. Check on in dynamic link documentation

RaashVision commented 4 years ago

@okayfine What you mean by unable to clear from lifecycle?

while-loop commented 3 years ago

Getting this same issue. Android works fine, but some iOS devices work, others not. Most of the issues have been from iOS 14.4. (a reboot does fix the link issue).

App flow: 1) Install app 2) enter email and send login email to user 3) get passwordless login email 4) click link in email app 5) gets directed to invalid dynamic link website (error).

Using myapp.page.link for dynamic link URLs.

firebase_core: ^0.5.3
firebase_auth: ^0.18.4
firebase_dynamic_links: ^0.6.3
• Flutter version 1.22.5 at /home/anthony/dev/flutter
• Framework revision 7891006299 (3 months ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
eliasjtg commented 2 years ago

Same issue

Lzyct commented 2 years ago

It's running well now in latest version Tested on iOS 15