watch-os-2


Does WCSessionDelegate get an initial sessionReachabilityDidChange after activating WCSession?


When setting up a WCSession in a watchOS app, does the WCSessionDelegate's sessionReachabilityDidChange: method always get invoked immediately after calling activateSession? From my testing this seems to be true but I am not finding any confirmation of this in documentation.
I ask because if I can rely on sessionReachabilityDidChange: being called immediately after activating the session, I can remove some redundant code from applicationDidBecomeActive that checks for a reachable session and sends some initial messages to the iPhone app.
Why not just call it yourself after you are done doing all your set up? That way you don't rely on any undocumented behavior, yet you don't have to duplicate code in two places

Related Links

Play audio on Apple Watch without bluetooth
Why HKSample array always have 1 value for a HKAnchoredObjectQuery with no limits,no predicate, no anchor?
wrong WCSessionDelegate callback function called
Apple watch's gyroscope.available always return false
Does WCSessionDelegate get an initial sessionReachabilityDidChange after activating WCSession?
Are `setHidden` messages to `WKInterfaceObject` guaranteed to be delivered in order?
Apple Watch App Extension won't run on the simulator anymore
WatchOS2 Context Menu not working with BecomeCurrentPage
Apple Watch Complication not updating in background
Apple watch complication not refreshing in the background when using HealthKit queries
WKInterfaceTable pull to refresh
HKAnchoredObjectQuery results handler doesn't fire after initial results
WKInterfaceMap is not shown on WatchOS 2 project
can a user interact with WKInterfacePicker with touch gestures?
Will install Watch App called with bad bundle identifier '(null)'
Wakeup Watch app OS2 from the parent IOS app?

Categories

HOME
kentico
design-patterns
fuelux
linkedin
gpu
formal-languages
solaris
spring-data-redis
vscode-extensions
gluon-mobile
pkcs#11
spin
fhir
mel
gson
project-intu
mautic
favicon
onedrive-api
frequency-distribution
scrolltop
selectize.js
qsqlquery
mongodb-csharp
do-while
dynamic-sql
html5-appcache
symfony-console
lilypond
ag
articulate-storyline
resourcebundle
siri
bringtofront
iis-express
boost-asio
testbed
deltaspike
rselenium
android-gridview
nested-lists
browser-extension
swagger-php
wurfl
timing
unordered-map
android-ibeacon
oracle-service-bus
bindingnavigator
oim
mesosphere
textsum
term
twilio-click-to-call
google-cse
zenhub
avx
skin
jtree
ampps
rxtx
mapxtreme
async.js
tinkerpop3
spring-cloud-feign
mta
dup
xdoclet
iokit
dock
evolus-pencil
mirror
botan
aspectj-maven-plugin
kubuntu
filesplitting
contrast
live555
jjaql
fpdi
maven-scm
dsym
git-repo
cocoalibspotify-2.0
rolify
time.h
server-administration
chart-director
nokia-s40
uimanageddocument
subgraph
ilasm
jsr286
virtualpathprovider
google-maps-mobile
luabind
jquery-tools
automationelement
lr
entitydatasource
wcf-proxy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App