Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17012] Contact API for windows platform throws error

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T20:14:21.000+0000
Affected Version/sRelease 3.2.1
Fix Version/sn/a
ComponentsWindows Hybrid
Labelsdefect
ReporterSapan Varshney
AssigneeChris Barber
Created2014-05-15T11:12:12.000+0000
Updated2017-03-20T17:42:58.000+0000

Description

Problem Description

Contact API for windows platform throws Ti.Contact undefined error.

Steps to reproduce:

1. Create an application using titanium/appcelerator studio having the deployment target as mobileweb (classic titanium) 2. Paste this code to app.js: {Code} var win=Ti.UI.createWindow({ backgroundColor:'white' }); var button=Ti.UI.createButton({ width:100, height:50, title:'Add Contact' }); button.addEventListener('click',function(e){ var workAddress1 = { 'CountryCode': 'us', 'Street': '440 N. Bernardo Avenue', 'City': 'Mountain View', 'State': 'California', 'Country': 'United States', 'ZIP': '94043' }; Ti.Contacts.createPerson({ firstName:'Arthur', lastName:'Evans', address:{ 'work':[workAddress1] } }); }); win.add(button); win.open(); {Code} 3. Changed the SDK version in tiapp.xml to the Hybrid SDK 4. Open the command prompt and move to the project directory 5. Build for device using the command - titanium build -p mobileweb -T wp8 -C xe --wp8-publisher-guid

Actual Result:

Code breaks and throws undefined error

Expected Result:

Contact should be added to the phone contact list

Attachments

FileDateSize
TiContact.jpg2014-05-15T11:12:12.000+000047466

Comments

  1. Ritu Agrawal 2014-05-15

    [~rtlechuga] FYI
  2. Chris Barber 2016-08-24

    Windows Hybrid is dead.
  3. Lee Morris 2017-03-20

    Closing ticket as Windows Hybrid is no longer supported.

JSON Source