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

Found contacts still not parsed correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.6.1
    • cordova-wp7 (DEFUNCT)
    • All Emulator and Phone

    Description

      The fix that was uploaded to the Contacts part still doesn't resolve the issue of correctly parsing contact data. Now the name looks like it is parsed correctly but there are still bugs.

      For the phone part from the message result you won't see if it is work, home as it has only the phone numbers inside the [] . On the address part it's even worse

      The method is bugged:
      private string FormatJSONAddresses(Contact con)
      {
      string retVal = "";
      foreach (ContactAddress address in con.Addresses)

      { retVal += "\"" + address.ToString() + "\","; }

      return retVal.TrimEnd(',');
      }
      The ToString() it won't return the real address but the type of the variable in string so Microsoft.Phone.UserData.ContactAddress.

      The whole return of the contact seems in the wrong format

      Attachments

        Activity

          People

            filmaj Filip Maj
            dan.ardelean Dan Ardelean
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: