To get scheduled notifications to work on android phones using flutter_local_notifications:

Specify the following between the tags so that the plugin can actually show the scheduled notification(s)

<receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
<receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
    <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED"/>
        <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
        <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
    </intent-filter>
</receiver>

See Flutter Documentation For Scheduled Notifications

To Build Icons For Flutter App

Go to flutter icon documentation

Create config file

dart run flutter_launcher_icons:generate

The config file will be called flutter_launcher_icons.yaml and will be in your flutter project’s root directory.

After setting up the configuration, all that is left to do is run the package.

flutter pub get
dart run flutter_launcher_icons

Flutter: Build & Install APK to Android Device via Terminal

1. Enable USB Debugging on Your Android Device

  • Open Settings > About phone.
  • Tap Build number 7 times to unlock Developer Options.
  • Go to Settings > System > Developer options.
  • Enable USB debugging.

2. Connect Your Device

  • Plug your phone into your computer via USB.
  • Allow debugging permission if prompted on the phone.
  • Verify connection by running:
    adb devices
    

    Your device should appear in the list.

3. Clean the Flutter Project

Removes old builds and cache:

flutter clean

4. Fetch Packages

Installs and updates Dart and plugin dependencies:

flutter pub get

5. Run the App in Debug Mode (optional)

To quickly test changes (runs via USB debug bridge):

flutter run
  • This is optional but helpful for rapid dev.
  • Stop with Ctrl+C.

6. Build a Release APK

Generates a signed APK ready for installation:

flutter build apk --release
  • Output: build/app/outputs/flutter-apk/app-release.apk

7. Install the APK via ADB

Sideload the built APK directly onto your device:

adb install -r build/app/outputs/flutter-apk/app-release.apk
  • The -r flag allows reinstalling over an existing version.

8. Find and Open the App

  • Locate “Name of App That You Gave” in your app drawer.
  • If prompted, allow permissions (e.g., notifications).

Typical Update Cycle

flutter clean
flutter pub get
flutter run           # test in debug
# Make code changes, repeat flutter run as needed

flutter build apk --release
adb install -r build/app/outputs/flutter-apk/app-release.apk

Troubleshooting

  • If adb is not found, ensure Android Platform Tools are installed and in your PATH.
  • If install fails, unlock your phone and accept any prompts.
  • If “Install Unknown Apps” is disabled, enable it in Settings > Apps > Special Access > Install Unknown Apps.

This workflow is fast, reliable, and 100% terminal-driven. Save for future reference!

Visit Emlekezik.com