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

[QUESTION] [iOS] Background App Refresh permission #238

Closed
mcgomez opened this issue Mar 12, 2020 · 3 comments
Closed

[QUESTION] [iOS] Background App Refresh permission #238

mcgomez opened this issue Mar 12, 2020 · 3 comments

Comments

@mcgomez
Copy link

mcgomez commented Mar 12, 2020

Your Environment

  • Plugin version: 2.7.1
  • Platform: iOS
  • OS version: 12
  • Device manufacturer / model: iPhone X
  • React Native version (react-native -v): 0.61.5

Question

I'm wondering if its possible to check the permission status of Background App Refresh for iOS
Screen Shot 2020-03-12 at 9 58 50 AM

@christocracy
Copy link
Member

See README for method BackgroundFetch.status

@mcgomez
Copy link
Author

mcgomez commented Mar 12, 2020

Thanks for the quick response @christocracy! Is it possible to request it if it has been denied?

@christocracy
Copy link
Member

christocracy commented Mar 12, 2020

Read the Notes for the method:

Your callback will be executed with the current status (Integer) 0: Restricted, 1: Denied, 2: Available. These constants are defined as BackgroundFetch.STATUS_RESTRICTED, BackgroundFetch.STATUS_DENIED, BackgroundFetch.STATUS_AVAILABLE (NOTE: Android will always return STATUS_AVAILABLE)

BackgroundFetch.STATUS_DENIED

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

No branches or pull requests

2 participants