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

Windows: Calling Ti.Contacts.Group.members() errors with 'Can't find variable: memberIdentifiers'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 10 Pro
      Appc core: 5.4.0-37
      Appc NPM: 4.2.7
      Ti SDK: 5.4.0.v20160801022303

    • Story Points:
      5
    • Sprint:
      2017 Sprint 11 SDK

      Description

      Description

      When calling Ti.Contacts.Group.members() it errors with 'Can't find variable: memberIdentifiers'.

      Ti.Contacts.requestContactsPermissions(function(e) {
          if (e.success) {
              Ti.API.info('auth request success');
              Ti.API.info(JSON.stringify(e));
              var group = Ti.Contacts.createGroup({
      			name: 'My best friends'
      		});
      		
      		Ti.Contacts.save();
      		console.log('Made group');
      	
      		var person = Ti.Contacts.createPerson({
      				firstName: 'Arthur',
      				lastName: 'Evans',
      				phone: {
      					"work": ["01234566789"]
      				}
      			});
      		Ti.Contacts.save();
      	
      		group.add(person);
      		Ti.Contacts.save();	
      		console.log('Added person');
      		console.log('Members are');
      		console.log(group.members());
          } else {
              Ti.API.info('auth request fail');
              Ti.API.info(e);
          }
      });
      

      Steps to reproduce
      1. Copy the code above to an existing app.js
      2. Build for Windows platform
      Actual result

      When group.members() is called the app will throw an error

      Expected result

      Calling group.members() should return the members of a group

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Gary Mathews
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code