[TIMOB-17012] Contact API for windows platform throws error
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-08-24T20:14:21.000+0000 |
Affected Version/s | Release 3.2.1 |
Fix Version/s | n/a |
Components | Windows Hybrid |
Labels | defect |
Reporter | Sapan Varshney |
Assignee | Chris Barber |
Created | 2014-05-15T11:12:12.000+0000 |
Updated | 2017-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
[~rtlechuga] FYI
Windows Hybrid is dead.
Closing ticket as Windows Hybrid is no longer supported.