Connect to Facebook, Google, or Apple to ensure that your progress will be saved no matter what happens. If you need to reset your device with a factory install, your progress and coins will still be up to date as soon as you sign into your account.
Also, if you get a new phone or tablet, all your account information will be saved if you connect your Facebook, Google, or Apple account.