[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 されることで落ちてしまうのだろうか。
関連記事
-
-
Apple Event Sep 2021
ついに後数時間で Apple Event 2021.09.15 がある。 今年は何かサプライ
-
-
Apple Special Event 2019
https://japanese.engadget.com/2019/09/10/5-iphone
-
-
[Apple Watch] 黒アルミスポーツ42mm予約した
開発のために購入。4月10日(金) 16:05 あたりに予約したがすでに出荷予定日 4-6週だった。
-
-
Apple Special Event 2017
2017年は仕事で死んでいたので、Special Eventの記事を書けていなかった。記録
-
-
2015年に買ったりもらったりリリースしたりしたもの振り返り
年末なので2015年を振り返ってみよう企画。前半は仕事で死んでいたが、思ったよりもいろいろ活動してい
-
-
[WatchKit] Apple WatchアプリをRejectされた話
Apple Watch はいつの間にか電池がかなり減っていることが多く、いつどのように減っているか知
-
-
Apple Special Event September 2018
今年も新型iPhoneを発表するアップルのスペシャルイベントが2018年9月13日2時AM(12日1
-
-
[Apple Watch] EverLearn 1.9.7 Release
初の Apple Watch 対応アプリ EverLearn 1.9.7 をリリースしました。間違え
-
-
[WatchKit] WatchSim 買ってみた
WatchSim Danny Keogan posted with iT
- PREV
- Xcode 13ダウンロード
- NEXT
- iOS15にアップデート