By linking your game account to a different platform, such as Facebook, you will be able to recover your data on your own in case of a device change or if you accidentally delete the app.
Tap the "Link Account" button from the settings (⚙ icon) and select the platform you wish to link your game account to.
Additionally, you can link your account to multiple platforms if you wish to.
However, please note that once an account has been linked, it cannot be unlinked.