[TIMOB-12235] BlackBerry: Implement important Titanium.Contacts functionality
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-12T11:34:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.2, Release 3.2.0, Release 3.3.0 |
Components | BlackBerry |
Labels | contacts, notable, qe-3.3.0, qe-testadded, regression |
Reporter | Russell McMahon |
Assignee | Pedro Enrique |
Created | 2013-01-07T13:19:43.000+0000 |
Updated | 2014-06-20T18:19:44.000+0000 |
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/63
Left code review comments on the pull request.
Tested the pull request and ran into some issues. Left comments on the pull request describing the issues.
Test 1
Verified the feature & now we can create a contact in BB successfully with the given code. Thus closing Environment: Appcel Studio : 3.1.2.201308082014 Ti SDK : 3.1.2.v20130808180613 Mac OSX : 10.8.4 Alloy : 1.2.0-alpha6 CLI - 3.1.2-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88
Tested with: Mac osx 10.9.3 Mavericks Appcelerator Studio, build: 3.3.0.201405271647 Titanium SDK, build: 3.3.0.v20140524224144 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-beta npm@1.3.2 titanium@3.3.0-beta titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1)
Steps
1. Click "create contact" 2. Dismiss the alert and check the phone contactsActual result
no log output no contact has been createdI'm investigating, not sure why this is failing. It could be a BB bug since this is also failing with a simple native app. This is the actual error I'm getting when debugging the Titanium app through Momentics:
[~penrique] Can you please log a bug with BB for this?
Ok, figured it out. When we first implemented this, it worked and now it does not. When a contact if first created in Titanium, an empty BB contact was created and then updated as properties are passed in the object. This now fails as BB does not allow us to create an empty contact. Fixed it by checking if the created contact is valid before updating it, and then added the property. PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/266
Please use this code for testing. It incrementes the contacts first name, last name, etc... so that duplicated can be created and better tested.
Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201406111953 Titanium SDK, build: 3.3.0.v20140617161713 Titanium CLI, build: 3.3.0-rc Alloy: 1.4.0-rc BlackBerry SDK, build: 10.2.0.1155 BlackBerry Simulator: 10.3.0.440 BlackBerry Device: 10.2.1.2947 Contact is created successfully. Closing.