ios - watchOS2 and iOS8 connectivity - Swift -


for watchos1 there several limited, efficient methods available sharing data between watch , phone - openparentapp, appgroups , nsuserdefaults.

with release of watchos2 , watchconnectivity framework - openparentapp method deprecated, appgroups , nsuserdefaults limited read-only functionality. important note here watchconnectivity supported ios9 devices.

but somehow see apps on appstore claiming optimised watchos2 while having ios8 deployment target.

am missing something? there other methods available sharing data sufficiently?

some user may not have apple watch , may using ios8. support them, can set each deployment target version per each build target.

likes these example targets in project:

  • ios app (target: ios 8.x, must set watchconnectivity framework optional)
  • watchos 2 app (target: ios 9.x & watchos 2) -> ios8 user can't install watch app.
  • watchos 2 app exntension (target: ios 9.x & watchos 2)

in ios app codes, can check watchconnectivity availability below codes:

nsclassfromstring(@"wcsession") != nil; 

as far know, can provides watchos 1 app in sametime, did not test it. can't tested simulator , don't have other apple watch have watchos1.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -