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

Use iOS identifierForVendor for the device UUID property

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-device
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: