Last active
October 29, 2019 13:44
-
-
Save MotiurRahman/c39f486dff0b600e0f6572d4f91d1eda to your computer and use it in GitHub Desktop.
setUsername and setMetadata Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({ | |
backgroundColor : '#fff' | |
}); | |
// Create a Button. | |
var ACATest = Ti.UI.createButton({ | |
title : 'ACATest', | |
color : "red", | |
height : Ti.UI.SIZE, | |
width : Ti.UI.SIZE, | |
}); | |
var acs = require("com.appcelerator.aca"); | |
acs.setUsername('motiur rahman'); | |
// Listen for click events. | |
ACATest.addEventListener('click', function() { | |
try { | |
var err = new Error('FATAL ERROR: Value cannot be null or undefined!'); | |
if (value === null || value === undefined) | |
throw err; | |
} catch (err) { | |
acs.logHandledException(err); | |
acs.setMetadata('email', 'motiur@gmil.com'); | |
} | |
}); | |
win.add(ACATest); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error on this link -> aca.setMetadata('motiur', 'might be an issue');
it shoulbe acs.setMetadata('motiur', 'might be an issue');