Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19364] iOS9: Ti.App.iOS.WatchSession should be global

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-08-18T06:22:23.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS
LabelswatchOS2
ReporterChee Kiat Ng
AssigneeEric Merriman
Created2015-08-18T01:56:49.000+0000
Updated2017-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());

Comments

  1. Chee Kiat Ng 2015-08-18

  2. Chee Kiat Ng 2015-08-18

    APPROVED. PR Merged.
  3. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source