[TIMOB-19364] iOS9: Ti.App.iOS.WatchSession should be global
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-18T06:22:23.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | Release 5.0.0 |
Components | iOS |
Labels | watchOS2 |
Reporter | Chee Kiat Ng |
Assignee | Eric Merriman |
Created | 2015-08-18T01:56:49.000+0000 |
Updated | 2017-03-20T17:08:38.000+0000 |
Description
As opposed to:
var watchSession = Ti.App.iOS.createWatchSession();
watchSession.sendMessage({
message:{ message: 'Hello World}
});
watchSession.addEventListener('messageReceived', function());
it should be
Ti.WatchSession.sendMessage({
message:{ message: 'Hello World}
});
Ti.WatchSession.addEventListener('messageReceived', function());
APPROVED. PR Merged.
Closing ticket as fixed.