Problem
The getText method of [Titanium.UI.Clipboard](
http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.Clipboard) returns different values on Android and iOS when the clipboard is empty:
Android: empty string
iOS: undefined
Test case
Titanium.UI.setBackgroundColor('#000');
Ti.API.log('Deleting all text in Clipboard');
Ti.UI.Clipboard.clearText();
Ti.API.log('Clipboard.getText() empty: ' + Ti.UI.Clipboard.getText()); // returns empty string on android and undefined on iOS when empty
Ti.API.log('Set text Clipboard to hello');
Ti.UI.Clipboard.setText('hello');
Ti.API.log('Clipboard.hasText(), should be true: ' + Ti.UI.Clipboard.hasText());
Ti.API.log('Clipboard.getText(), should be hello: ' + Ti.UI.Clipboard.getText());
Ti.API.log('Deleting all text in Clipboard');
Ti.UI.Clipboard.clearText();
Ti.API.log('Clipboard.getText() empty: ' + Ti.UI.Clipboard.getText()); // returns empty string on android and undefined on iOS when empty
Closing ticket due to time passed, any problems please open a new ticket.