We are migrating from an Ionic Cordova app to an Ionic Capacitor app. While I know that Capacitor still supports Cordova plugins, we try to migrate as much as possible.
Our app relies on the device UUID provided by the Cordova device plugin. Is this the same as the device UUID provided by Capacitor? I tried to compare both repositories, but I am not completely sure if the Android is actually the same (what is the first argument in the method given below)?
Here is my comparison:
iOS Cordova:
[[device identifierForVendor] UUIDString]
Android Cordova:
Settings.Secure.getString(this.cordova.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
iOS Capacitor:
UIDevice.current.identifierForVendor!.uuidString
Android Capacitor:
Settings.Secure.getString(this.context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);