[TIMOB-19425] Remove the need to call Ti.WatchSession.activate()
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 5.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Unknown |
Created | 2015-08-28T09:36:57.000+0000 |
Updated | 2018-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?_.
No comments