Samira
Samira

Reputation: 215

Using the existing glance screen of WatchOS 2 as snapshot of the watch app for WatchOS 3

I have an Apple WatchOS2 app which I need to upgrade it to WatchOS 3. As there is no glance screen on WatchOS 3 anymore I'm not sure how to use the current glance screen to create automatic snapshot by calling scheduleSnapshotRefresh method in WKSnapshotRefreshBackgroundTask. Can I migrate the whole project from WatchOS 2 target to a WatchOS 3 target and apply changes to make it compatible with WatchOS 3?

Upvotes: 0

Views: 234

Answers (1)

Greg Robertson
Greg Robertson

Reputation: 2347

Try: https://developer.apple.com/library/prerelease/content/samplecode/WatchBackgroundRefresh/Introduction/Intro.html

This updates the view on awake.

You can also try updating the snap shot view when you receive a refresh task (WKSnapshotRefreshBackgroundTask).

https://developer.apple.com/reference/watchkit/wksnapshotrefreshbackgroundtask

Greg

Upvotes: 0

Related Questions