[watchOS] handleBackgroundTasks
公開日:
:
Apple Watch
https://developer.apple.com/documentation/watchkit/wkextensiondelegate/1650877-handlebackgroundtasks
https://developer.apple.com/documentation/watchkit/wksnapshotrefreshbackgroundtask?language=objc
watchOSのhandleBackgroundTasks で WKSnapshotRefreshBackgroundTask を拾って setTaskCompletedWithDefaultStateRestored しないと watchOSアプリが落ちることがわかった。
If you do not call setTaskCompletedWithDefaultStateRestored:estimatedSnapshotExpiration:userInfo:
on the task, the system uses all available time, wasting battery power. The system then suspends the extension as soon as the allotted time has expired.
とあるので、落ちるとは書かれていないが、suspend されることで落ちてしまうのだろうか。
関連記事
-
-
[iOS SDK] WatchKitでできることできないこと 2015年3月
Apple Watch発売日(2015年4月24日)までに自作アプリの WatchKit対応
-
-
容量不足でApple Watch Series 3をアップデートできない
容量不足で Apple Watch をアップデートできない場合 - Apple サポート (日本)
-
-
Xcode will continue when iPhone is finished. が表示されて Apple Watch でデバッグ実行できない
Apple Watch 開発をしていると、Xcode will continue when
-
-
Xcode 13.1 アップデート
Apple、統合開発環境「Xcode 13.1」をリリース:CodeZine(コードジン)
-
-
[WatchKit] WKCompanionAppBundleIdentifier と WKAppBundleIdentifier を変更する
自作Apple Watch アプリのフォルダを丸ごとコピーして新しいアプリを作るときなどに、erro
-
-
Apple Special Event 2015
https://www.gizmodo.jp/2015/09/applelive_event_ip
-
-
watchOS8 アップデート内容
この前購入した Apple Watch SE は watchOS 7が入っていたが、Absolut
-
-
Apple Special Event 2014
https://japanese.engadget.com/2014/09/09/9-9/
-
-
watchOS6でWKRefreshBackgroundTaskが動かない
自作アプリ Watch Battery Loggerの改良版を作っているが、どうも watchOS
-
-
Apple Special Event 2017
2017年は仕事で死んでいたので、Special Eventの記事を書けていなかった。記録
- PREV
- Xcode 13ダウンロード
- NEXT
- iOS15にアップデート