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

DataStore: only sync on WiFi #6034

Open
mdoesburg opened this issue Jun 8, 2020 · 0 comments
Open

DataStore: only sync on WiFi #6034

mdoesburg opened this issue Jun 8, 2020 · 0 comments
Labels
DataStore Related to DataStore category feature-request Request a new feature React Native React Native related issue

Comments

@mdoesburg
Copy link

Is your feature request related to a problem? Please describe.
This is related to this older issue: #5037

Basically, in the app I am developing, users want to be able to prevent syncing while on a 4G network for example, to prevent data charges.

Describe the solution you'd like
I know DataStore uses reat-native-netinfo under the hood. The netinfo package exposes the network type, and I would like to know if anyone knows of any workarounds that I could implement so that I can prevent the DataStore from syncing unless the user is connected to a WiFi network. Hopefully this will eventually become a feature, but for now a workaround will do.

@mdoesburg mdoesburg added the feature-request Request a new feature label Jun 8, 2020
@Ashish-Nanda Ashish-Nanda added React Native React Native related issue DataStore Related to DataStore category labels Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataStore Related to DataStore category feature-request Request a new feature React Native React Native related issue
Projects
None yet
Development

No branches or pull requests

2 participants