Would the historical data be lost if I replace the device or my mobile?

The data successfully synced will not be lost. All your data will be saved in the account registered in himama. Your himama account is verified solely by email address at present. So only if the email address remains unchanged, the historical data will not be lost.