I'm trying to migrate my app from WatchOS1 to WatchOS2 , i was sharing data on watch OS1 using app group with the help of core data, so i want same functionality on watch OS2.How to achieve this?
WatchOS1 to WatchOS2
I'm trying to migrate my app from WatchOS1 to WatchOS2, i was sharing data on watch OS1 using app group with the help of core data, so i want same functionality on watch OS2.How to achieve this?
When you say “sharing data” do you mean “sharing data between your iPhone app and your WatchKit extension”? If so, there isn’t a direct way to do this on watchOS 2 because the two components and now running on different devices. You will have to significantly rework your data sharing approach.
This issue was covered in some detail at WWDC. A good place to start is WWDC 2015 Session 207 WatchKit In-Depth, Part 1. That points to WWDC 2015 Session 713 Introducing Watch Connectivity, which discusses the Watch Connectivity framework, which is likely to be a big part of your solution.
This issue is also covered in the watchOS 2 Transition Guide.
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"