Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19425] Remove the need to call Ti.WatchSession.activate()

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFokke Zandbergen
AssigneeUnknown
Created2015-08-28T09:36:57.000+0000
Updated2018-02-28T19:55:26.000+0000

Description

The Ti.WatchSession.activate() method has to be called before the Titanium can receive events from the Watch. This is how it works in a Xcode app as well. However, when you one of the Ti.WatchSession properties or methods it session is activated automatically. I'd suggest to automatically activate the session when the user adds event listeners to Ti.WatchSession as well so that there's no need anymore for Ti.WatchSession.activate(). The need to (sometimes) call activate() is something people easily forget and I expect it to cause Q&A question like _Why doesn't my Titanium app receive events from the Watch?_.

Comments

No comments

JSON Source