Skip to content

Simplify requestPermissionBackgroundLocation and requestPermissionBatteryOptimization responses#256

Closed
ieduardogf wants to merge 1 commit intomasterfrom
fix/255-update-permission-responses
Closed

Simplify requestPermissionBackgroundLocation and requestPermissionBatteryOptimization responses#256
ieduardogf wants to merge 1 commit intomasterfrom
fix/255-update-permission-responses

Conversation

@ieduardogf
Copy link
Collaborator

@ieduardogf ieduardogf commented Mar 11, 2026

Summary

Closes #255

  • requestPermissionBackgroundLocation: Response simplified from status: "granted" | "denied" | "settings_change_required" to status: "granted" | "denied". The settings_change_required value was not used by iOS.
  • requestPermissionBatteryOptimization: Response simplified from status: "denied" | "settings_change_required" to status: "granted" | "denied", aligning with the Android implementation.

Changes

  • src/post-message.ts: Updated response payload types
  • src/family-locator.ts: Updated function return types
  • src/__tests__/family-locator-test.ts: Updated test assertions
  • README.md: Updated documented type signatures
  • CHANGELOG.md: Added v4.2.0 entry

Test plan

  • yarn ci passes (prettier, lint, ts-check, tests, build)
  • Verify with Android native app that granted/denied responses work for both methods
  • Verify with iOS native app that background location permission flow still works

…teryOptimization responses

Remove `settings_change_required` from both methods' response types,
returning only `status: "granted" | "denied"` as agreed with iOS and
Android teams.

Closes #255

Made-with: Cursor
@ieduardogf ieduardogf added the AI label Mar 11, 2026
@ieduardogf
Copy link
Collaborator Author

We did another test with AI here #257

@ieduardogf ieduardogf closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Update] Change requestPermissionBackgroundLocation and requestPermissionBatteryOptimization responses

1 participant