Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
818 stars 117 forks source link

[Query, not a bug] How can I store data locally? #122

Closed Shaswati closed 2 years ago

Shaswati commented 2 years ago

I am using this library to collect sensor data in the background. I could successfully collect data even if the application is removed/killed from the background state. Now, I want to store that data in local storage first. Once the user gets connected to the server, I will sync data with the server. What can be the approach to achieve that? Any advice will be appreciable.

Rapsssito commented 2 years ago

@Shaswati, for local storage I highly suggest you using https://github.com/react-native-async-storage/async-storage.