Why is the Device ID Changing?
1️⃣ Android (androidInfo.id changing)
androidInfo.id is NOT a unique hardware identifier.
On some devices, this ID may change when:
The device is factory reset.
A new user profile is created on the device.
Some Android OEMs (Samsung, Xiaomi, etc.) generate different IDs after system updates.
2️⃣ iOS (iosInfo.identifierForVendor changing)
identifierForVendor is unique per app and per vendor (same developer account).
The ID changes when:
The user uninstalls and reinstalls the app.
The app is installed on another device.
The app is installed from a different Apple Developer account (TestFlight vs App Store).
You have some solutions:
package: mobile_device_identifier
or