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

Android sets type to -1 for ims

    XMLWordPrintableJSON

Details

    Description

      I've created a contact with some ims.

      {
          ims: [{
              type: "Skype",
              value: "mr_important"
          }]
      }
      

      When I retrieve the contact from the system it looks like this:

      {
          ims: [{
              id: "2966",
              pref: false,
              type: -1,
              value: "mr_important"
          }]
      }
      

      Have a look at the type... Why...?
      The phonebook shows the contact as expected with the correct type.

      Problem is the same either if the contact is created in the system or with the cordova plugin.

      Versions:
      Android: 6.0
      Cordova: 6.0.0
      Platform: 5.1.1
      Cordova-Plugin-Contacts: 2.0.1

      Attachments

        Activity

          People

            daserge Sergey Shakhnazarov
            tmuecksch Tobias Mücksch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: