Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20147

iOS: Ti.Contacts.showContacts() selectedPerson returns empty on iOS 8.4

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Ti SDK 5.2.0.v20151202153633
      iOS 8.4
      Xcode 6.4

    • Sprint:
      2015 Sprint 25 SDK

      Description

      Steps to reproduce

      1. Create titanium classic app
      2. Use this sample code

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
      var btn3 = Ti.UI.createButton({
      	title: 'show Contacts',
      	top:'15%'
      });
       
      btn3.addEventListener('click', function(e){
      	Ti.Contacts.showContacts({
      		cancel: function(e) {
      			alert('cancelled');
      		},
      		selectedPerson: function(e) {
      			var person = e.person;
      			Ti.API.info(person);
      			alert('person selected is ' + person.fullName);
      		},
      //		selectedProperty: function(e) {
      //			alert('property selected\n' + e.property +'\n' + e.label +'\n'+e.value);
      //			Ti.API.info(e.value);
      //			Ti.API.info(e.person.fullName);
      //			Ti.API.info(e.property);
      //			Ti.API.info(e.value);
      //			Ti.API.info(e.label);
      //		}
      	});
      });
      win.add(btn3);
      win.open();
      

      3. Show Contacts
      4. Select a person

      Expected Result

      alert dialog with person's name shown

      Actual Result

      alert dialog with 'no name' shown

        Attachments

          Activity

            People

            • Assignee:
              ssombhatla Srikanth Sombhatla (Inactive)
              Reporter:
              apetkov Angel Petkov
              Reviewer:
              Angel Petkov
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20788
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration