Search code examples
nativescriptnativescript-vuenativescript-plugin

Nativescript & iOS DeviceCheck API


My team has a nativescript-vue application that is targeting the iOS platform. We were trying to uniquely identify the iOS device uuid via nativescript-uuid, but that appears to no longer supported. What is the best approach to use the DeviceCheck API?


Solution

  • You were right nativescript-uuid plugin is not updated to work with iOS 11 or later (DeviceCheck API).

    An alternative could be using nativescript-secure-storage plugin, store the UUID you get using UIDevice.currentDevice.identifierForVendor.UUIDString for the first time, then it should return the same value even after reinstalling the app.