Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android][location] Fix exception when service is missing on api 34 #27355

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

alanjhughes
Copy link
Collaborator

@alanjhughes alanjhughes commented Feb 28, 2024

Why

Closes #27336

How

Only repros when full background permissions are granted (Always allow). Added a check for the required permissions and prevent the service from starting if they are missing.

Test Plan

bare-expo

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Feb 28, 2024
@expo-bot
Copy link
Collaborator

expo-bot commented Feb 28, 2024

The Pull Request introduced fingerprint changes against the base commit: 7386599

Fingerprint diff
[
  {
    "type": "dir",
    "filePath": "../../packages/expo-location/android",
    "reasons": [
      "expoAutolinkingAndroid"
    ],
    "hash": "144a78981541bd6f0d8b29d166f30e5062cb59a5"
  }
]

Generated by PR labeler 🤖

@alanjhughes alanjhughes marked this pull request as ready for review February 28, 2024 16:21
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Feb 28, 2024
@alanjhughes alanjhughes merged commit 239fdfb into main Feb 28, 2024
9 checks passed
@alanjhughes alanjhughes deleted the @alanhughes/location/fix-service-missing-exception branch February 28, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android 14 foreground service permission causes app crash in SDK 50
3 participants