Steps to reproduce
Using onAttachedToActivity does not trigger in Android 14.
Versions below this work normally.
Specify targetSdkVersion as 34 in app/gradle
It runs in the plugin's example code, but doesn't work when I use the plugin via pubspec.
Expected results
onAttachedToActivity does not work only in android 14
Actual results
onAttachedToActivity does not work only in android 14
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.2.1 23C71 darwin-arm64, locale ko-KR)
• Flutter version 3.13.9 on channel stable at /Users/syd/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d211f42860 (2 months ago), 2023-10-25 13:42:25 -0700
• Engine revision 0545f8705d
• Dart version 3.1.5
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/syd/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_SDK_ROOT = /Users/syd/Library/Android/sdk
• Java binary at: /Users/syd/Library/Java/JavaVirtualMachines/corretto-11.0.21/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Corretto-11.0.21.9.1 (build 11.0.21+9-LTS)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A507
• CocoaPods version 1.13.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 76.3.4
• Dart plugin version 232.10248
[✓] VS Code (version 1.85.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.80.0
[✓] VS Code (version 1.79.2)
• VS Code at /Users/syd/iCloud Drive(아카이브)/Desktop/Visual Studio Code.app/Contents
• Flutter extension version 3.80.0
[✓] Connected device (3 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 14 (API 34) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.2.1 23C71 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.199
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Steps to reproduce
Using onAttachedToActivity does not trigger in Android 14.
Versions below this work normally.
Specify targetSdkVersion as 34 in app/gradle
It runs in the plugin's example code, but doesn't work when I use the plugin via pubspec.
Expected results
onAttachedToActivity does not work only in android 14
Actual results
onAttachedToActivity does not work only in android 14
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output