Skip to content

Conversation

ened
Copy link
Collaborator

@ened ened commented Aug 30, 2025

Summary

  • Fix Android PlatformException on first run after initialize
  • Add iOS 14.0 availability annotations to prevent build errors
  • Document iOS 14.0 minimum deployment target requirement

Fixes #645, #641, #639
Closes #646, #642

Changes

Android Fix

  • Update currentDispatcherHandle when initialize() is called to prevent "You have not properly initialized" error on first run
  • Add validation for callback handle

iOS Fix

  • Add @available(iOS 14.0, *) annotation to LoggingDebugHandler class that uses os.Logger
  • Prevents build errors when targeting iOS versions below 14.0

Documentation

  • Add iOS 14.0 minimum deployment target requirement to quickstart guide

Credits

Test Plan

  • Android native tests pass
  • iOS build succeeds
  • All Dart tests pass
  • Example app builds for both platforms

ened and others added 2 commits August 30, 2025 13:37
- Fix Android PlatformException on first run after initialize (fixes #645)
  - Update currentDispatcherHandle when initialize() is called
  - Add validation for callback handle
- Add iOS 14.0 availability annotation to LoggingDebugHandler (fixes #641)
  - Prevents build errors when os.Logger is used
- Update documentation with iOS 14.0 minimum deployment target requirement (fixes #639)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

docs-page bot commented Aug 30, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/fluttercommunity/flutter_workmanager~647

Documentation is deployed and generated using docs.page.

ened added 2 commits August 30, 2025 13:51
…ck handles

The handle validation was too strict and incorrectly rejected valid callback
handles (including 0) which caused all initialize calls to fail in integration tests
@ened ened merged commit 3d3974f into main Aug 31, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞PlatformException "You have not properly initialized the Flutter WorkManager Package" on first run
1 participant