When you use WiFi, it is backed up to Google Drive every 24 hours, so data is automatically maintained when you reinstall. (Android 6.0 or later)
Data safety
Safety starts with understanding how developers
collect and share your data. Data privacy and security practices may vary based
on your use, region, and age. The developer provided this information and may
update it over time.