Watch OS 2 and App Groups.

Do App Groups still work on Watch OS 2 as a mechanism for sharing files between the watch and iPhone?

(Since WatchKit extension will now reside on the watch instead of the iPhone)

What changes to we need to make to the existing codebase?

Answered by douglasak in 7818022

See the documentation on Watch Connectivity framework. App Groups are no longer applicable.


"Watch apps that shared data with their iOS apps using a shared group container must be redesigned to handle data differently. In watchOS 2, each process must manage its own copy of any shared data in the local container directory. For data that is actually shared and updated by both apps, this requires using the Watch Connectivity framework to move that data between them."


https://developer.apple.com/library/prerelease/watchos/documentation/WatchConnectivity/Reference/WatchConnectivity_framework/index.html#//apple_ref/doc/uid/TP40015269

Hello Tom:


WRT what you wrote:


watchOS 1 apps, where the extension is running on the paired iPhone, are compatable with watchOS 2. These apps will continue to function and have access to a shared app group between the WatchKit extension and parent application because the extension and app are running on the same device.


Does that mean it is possible to target WatchOS1 as the deployment using the latest versions of XCode?


John.

Watch OS 2 and App Groups.
 
 
Q