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

Android version of the contacts plugin behaves differently for Contact Detail "type"

    XMLWordPrintableJSON

Details

    Description

      After inspecting the code for the android version of the plugin, I found out, that for some reason the coders decided to return

      { ..., type: "custom", ... }

      for contact details with custom labels. But the iOS Version returns the actual custom label as type.

      Example:

      iOS:

      {
          name: [ ... ],
          phoneNumbers: [{
              id: 1337,
              type: "My super fancy label",
              value: "+41 45654 214654"
          }]
      }
      

      Android:

      {
          name: [ ... ],
          phoneNumbers: [{
              id: 1337,
              type: "custom",     // WHAT THE HECK?
              value: "+41 45654 214654"
          }]
      }
      

      This behaviour is not exclusive to phoneNumbers. It's the same for all ContactDetails.

      Attachments

        Issue Links

          Activity

            People

              Nikita Matrosov Nikita Matrosov
              tmuecksch Tobias Mücksch
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: