Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17278] Android: ACS show user response function doesn't work.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2014-07-07T03:31:30.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
LabelssupportTeam
ReporterMotiur Rahman
AssigneeMostafizur Rahman
Created2014-07-06T08:15:32.000+0000
Updated2014-07-07T03:31:30.000+0000

Description

Show user responses function doesn’t work in ACS . Always its return an error.
[error]:V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token ¬
But the same code works as expected on iOS all and android GA version. Affected Version: Android 3.3.0.RC

Testing Environment:

Titanium SDK: 3.3.0.RC, Titanium CLI: 3.3.0 –rc, Android SDK:4.2.2,4.4.2 OS X Version: 10.9.3, Appcelerator Studio: 3.2.3

Steps to reproduce the issue:

1. Create a Classic project. 2. Paste this code in app.js file. 3. Enable Cloud service. 4. At first create a user and paste this user_id in this code. 5. Run this code with the testing environment.
var win = Ti.UI.createWindow({
	backgroundColor : 'green'
 
});
var Cloud = require('ti.cloud');
 
function showDefault() {
	Cloud.Users.show({
		user_id : savedUserInfo.id
	}, function(e) {
		if (e.success) {
			var user = e.users[0];
			alert('Success:\n' + 'id: ' + user.id + '\n' + 'first name: ' + user.first_name + '\n' + 'last name: ' + user.last_name);
		} else {
			alert('Error:\n' + ((e.error && e.message) || JSON.stringify(e)));
		}
	});
}
 
// Create a Button.
var show = Ti.UI.createButton({
	title : 'Show User',
	height : Ti.UI.SIZE,
	width : Ti.UI.SIZE,
	top : 30,
});
 
// Listen for click events.
show.addEventListener('click', function() {
	showDefault();
});
 
// Add to the parent view.
win.add(show);
 
win.open(); 

Comments

No comments

JSON Source