Skip to content

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

Open
kq1231 wants to merge 1 commit intofluttercommunity:mainfrom
kq1231:patch-1
Open

docs: Fix iOS task identifier mismatch in Quick Start documentation#658
kq1231 wants to merge 1 commit intofluttercommunity:mainfrom
kq1231:patch-1

Conversation

@kq1231
Copy link

@kq1231 kq1231 commented Feb 3, 2026

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.

## 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
Copy link

docs-page bot commented Feb 3, 2026

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

docs.page/fluttercommunity/flutter_workmanager~658

Documentation is deployed and generated using docs.page.

@kq1231 kq1231 changed the title Fix iOS task identifier mismatch in Quick Start documentation docs: Fix iOS task identifier mismatch in Quick Start documentation Feb 3, 2026
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.

1 participant