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

Contact Picker returns -1 as the id for all contacts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 2.1.0
    • org.apache.cordova.contacts 0.2.14 "Contacts"
      Cordova CLI version: 3.6.3-0.2.13
      iOS platform:
      Code version: v0.10.25
      Cordova version: 0.21.13
      Xcode 6.0.1
      Build version 6A317

    Description

      Can anyone confirm that the contacts plug-in returns -1 for any contact id return from a device but it on the simulator returns a valid unique ID?

      Its strange..I have ios8 devices that return -1 for any contact picked...but the same action on the simulators returns a positive integer.

      From iOS 8 Device
      {
        "id": -1,
        "rawId": null,
        "displayName": null,
        "name": {
          "givenName": "Aunte",
          "formatted": "Aunte Aline",
          "middleName": null,
          "familyName": "Aline",
          "honorificPrefix": null,
          "honorificSuffix": null
        },
        "nickname": null,
        "phoneNumbers": [
          {
            "type": "other",
            "value": "01141223*******",
            "id": 0,
            "pref": false
          }
        ],
        "emails": [
          {
            "type": "home",
            "value": "vito.******@bluewin.ch",
            "id": 0,
            "pref": false
          }
        ],.........
      
      From ios-sim
      {
        "id": 7,
        "rawId": null,
        "displayName": null,
        "name": {
          "givenName": "Test",
          "formatted": "Test",
          "middleName": null,
          "familyName": null,
          "honorificPrefix": null,
          "honorificSuffix": null
        },
        "nickname": null,
        "phoneNumbers": [
          {
            "type": "home",
            "value": "(954)\u00a0646-7923",
            "id": 0,
            "pref": false
          }
        ],
        "emails": null,
        "addresses": null,
        "ims": null,
        "organizations": null,
        "birthday": null,
        "note": null,
        "photos": null,
        "categories": null,
        "urls": null
      }
      

      Attachments

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              drumaboy46 Ralph S Theart
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: