Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9386

Use iOS identifierForVendor for the device UUID property

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-device
    • None
    • iOS

    Description

      The UUID used in Cordova device plugin is currently just generating a new UUID and saving to preferences. This can be improved by using iOS identifierForVendor which has been in use since at least iOS 6 (maybe earlier).
      This means the UUID will be the same across multiple apps from the same vendor.
      I have made the adjustments in this pull request:
      https://github.com/apache/cordova-plugin-device/pull/36

      This should be backwards compatible as we still check the NSUserDefaults before using identifierForVendor so previous installs will not be affected.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tenfef Jordan Clist
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: