onAttachedToActivity method of ActivityAware not called

This issue has been tracked since 2023-03-17.

Good morning,
I am currently developing a flutter plugin on Android and iOS platforms. The main problem is that all the callbacks of ActivityAware are never called.

Steps to Reproduce

  1. Execute flutter run on the code sample (see "Code sample" section below)
  2. Wait until the app is loaded inside Android simulator Pixel_3a_API_33_arm64-v8a

Expected results:

See log onAttachedToActivity on console.

Actual results:

The expected log onAttachedToActivity is never printed to console.

Code sample Here you can find my git repository with all the code

project

Logs

flutter run --verbose

log.txt

flutter analyze

Analyzing example...                                                    
No issues found! (ran in 1.5s)

flutter doctor -v

doctor.txt

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2023-03-30
Star Count 151602
Watcher Count 3555
Fork Count 25000
Issue Count 11498

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date