Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20589] iOS: Allow editing contacts in iOS9 and above

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-04-05T06:17:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsiOS
Labelscontacts, qe-.5.4.0
ReporterSrikanth Sombhatla
AssigneeSrikanth Sombhatla
Created2016-03-18T06:26:25.000+0000
Updated2016-06-09T22:30:38.000+0000

Description

In >= iOS 9 we are not allowing to edit contacts, thought this is editable in iOS 8. The TiContactsPerson object being returned in immutable because of which attempting to edit a contact will result in crash.

Attachments

FileDateSize
app.js2016-03-21T07:22:25.000+00004300

Comments

  1. Srikanth Sombhatla 2016-03-21

    master PR: https://github.com/appcelerator/titanium_mobile/pull/7870 Use attached [^app.js] for testing. Problem is we are maintaining immutable CNContact objects internally. This fix changes them to mutable objects and also puts an observer so that the changes are collected and saved. In essence any method returning TiContactPerson returns an mutable object like in Android.
  2. Chee Kiat Ng 2016-04-04

    [~ssombhatla] Tested with your app.js but setting jobTitle and department is not working. Can you check?
  3. Srikanth Sombhatla 2016-04-05

    [~cng] Fixed the issue. Please review.
  4. Chee Kiat Ng 2016-04-05

    CR and FT passed. PR Merged.
  5. Harry Bryant 2016-06-09

    Verified as fixed, using the provided app.js, contacts are able to be edited on iOS9. Tested On: iPhone 6S (9.3.2) Device Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160608165242 Appc Studio: 4.6.0.201605201934 Appc NPM: 4.2.7.-2 App CLI: 5.4.0-11 Xcode 7.3 Node v4.2.6 *Closing ticket.*

JSON Source