I Use capacitor/device to extract unique device for Android and iOS. It is functional after uninstalling and installing application in Android , but for iOS whenever i Change my WiFi Network i get different device_id, how to handle this any alternative please suggest?
In my case only one device_id should be persistent for one user even after uninstall and installs.
import { Device } from '@capacitor/device';
const info = await Device.getInfo();
const id = await Device.getId();
There is no device_id
value, maybe you mean identifier
?
That value returns identifierForVendor
identifierForVendor | Apple Developer Documentation
While the app is in development (installed from Xcode), the value can change on app install/uninstalls, if published on the App Store then the value should remain the same.
Thanks @julio-ionic for Responding.
The Identifier is changing whenever I change my network(different wifi networks),
As Suggested I will check in My Production Application Whether it is changing on app install/uninstalls.