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

iOS: selectedPerson under showContacts does not show the details of the selected contact

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.5.0, Release 4.0.0
    • Component/s: iOS
    • Environment:

      Appc-Studio: 3.4.1.201410281743
      Titanium SDK: 3.5.0.v20141208122514
      Titanium CLI: 3.4.1
      Alloy : 1.5.1 GA
      OS: Mac OSX 10.10
      Xcode: 6.1
      Device: iPad Air 2 (iOS8.1)

    • Sprint:
      2014 Sprint 25 SDK

      Description

      This is a regression as the alert message appears with titanium sdk 3.4.1

      The alert message to display the fullname of the contact, set in the selectedPerson property of the showContacts, does not appear when a contact is selected from the device with titanium 3.5.0 sdk.

      When this test case is run using titanium 3.4.1 sdk, the alert messages appear but the information of the selected person, i.e. fullname of the person, does not appear instead an alert message showing "Fullname of Selected No name" pops up.

      Steps to reproduce:
      1. Create a sample classic proj and replace app.js with the following:

      var _window = Titanium.UI.createWindow({  
        //  title:'Tab 1',
          backgroundColor:'#fff'
      });
       
          var btn = Ti.UI.createButton({
              title: 'contacts'
          });
       
          btn.addEventListener('click', function() {
              Ti.Contacts.showContacts({
                  selectedPerson: function(e) {
       
                      Ti.API.info('FullName of Selected' + e.person.fullName);
                      alert('FullName of Selected ' + e.person.fullName);
       
                  }
              });
          });
          _window.add(btn);
      	_window.open();
      

      2. Run the app
      3. Click on contacts
      4. Select any contacts

      Note: Please add contacts in contact list before running the testcase.

      Actual Results:
      2. Window gets open with button "Contacts".
      3. Contact list gets open.
      4. No alert

      Expected results:
      2. Window gets open with button "Contacts".
      3. Contact list gets open.
      4. Get an alert with "FullName of Selected [Fullname of contact]".

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              vchidambaram Visalakshi Chidambaram
              Reviewer:
              Jon Alter
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration