Skip to content

docs: Fix iOS task identifier mismatch in Quick Start documentation - #684

Merged
ened merged 2 commits into
mainfrom
docs-quickstart-identifier
Aug 1, 2026
Merged

docs: Fix iOS task identifier mismatch in Quick Start documentation#684
ened merged 2 commits into
mainfrom
docs-quickstart-identifier

Conversation

@ened

@ened ened commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

Port of #658 by @kq1231 (original commits preserved, same authorship). Makes the Quick Start task identifier match the example code.

Co-authored-by: kq1231 88677687+kq1231@users.noreply.github.com

## Problem
The current Quick Start guide shows task identifiers that don't match between Dart and iOS native code, which causes `BGTaskSchedulerErrorDomain Code 3` errors on iOS.

**Current Issue:**
- Info.plist: `com.yourapp.processing_task`
- AppDelegate: `com.yourapp.processing_task`
- Dart code: `"data_sync"` ❌ (doesn't match!)

This mismatch prevents iOS background tasks from being scheduled successfully.

## Solution
Update documentation to show that **all three locations must use the same identifier**:
- Info.plist: `com.yourapp.processing_task`
- AppDelegate: `com.yourapp.processing_task`
- Dart code: `com.yourapp.processing_task` ✅

## Testing
Tested on iOS 26 with BGTaskScheduler - background tasks now schedule successfully without Code 3 errors.
@docs-page

docs-page Bot commented Jul 31, 2026

Copy link
Copy Markdown

To preview the documentation for this pull request, visit the following URL:

docs.page/fluttercommunity/flutter_workmanager~684

Documentation is deployed and generated using docs.page

@ened
ened merged commit 7d57a80 into main Aug 1, 2026
19 checks passed
@ened
ened deleted the docs-quickstart-identifier branch August 1, 2026 10:17
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.

2 participants