[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アプリが落ちることがわかった。

https://developer.apple.com/documentation/watchkit/wksnapshotrefreshbackgroundtask/1650844-settaskcompletedwithdefaultstate?language=objc

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週だった。

記事を読む

2020年大晦日

毎年年末は家族で旅行に出かけていたが、今年はコロナウィルスの影響もあり自宅で静かに過ごすこ

記事を読む

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

記事を読む

Message

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

M1 MacBook Air を Venturaにアップデートする

M1 MacBook Air を macOS Montere

iOS16でaurioTouch の inBufferFramesが1になる

https://developer.apple.com/librar

おんぷちゃん for iPad 2.0.0リリース

あけましておめでとうございます。今年もよろしくお願いします。

自宅をリフォームしてみた

数年前から奥さんに家のリフォームを希望されていた。 ガ

iOS 16 GM版アップデート

遅ればせながら iPhone 11 Pro Maxを iOS16 G

→もっと見る

  • 2021年10月
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
PAGE TOP ↑