[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 Watch] 2017年の冬休みの宿題はwatchOSアプリ開発
自分はPebble初代のころからスマートウォッチはPebble派だったが、2016年の年末は Peb
-
-
Apple Special Event 2019
https://japanese.engadget.com/2019/09/10/5-iphone
-
-
WatchKitのAVSpeechSynthesizerで音が鳴らない
自作英単語学習アプリ EverLearn には watchOS用アプリがあり、iOS側でまちがった
-
-
[WatchKit] WatchSim 買ってみた
WatchSim Danny Keogan posted with iT
-
-
[WatchKit] Apple WatchアプリをRejectされた話
Apple Watch はいつの間にか電池がかなり減っていることが多く、いつどのように減っているか知
-
-
[WatchKit] How to update complications
Apple Watch の文字盤上に、自分のアプリの情報を載せることができる仕組みが、Complic
-
-
Apple Watch series 2の電池が1日もたなくなってしまった
一日もたないので、時刻を見ようと思っても見れない。時計としての体をなしていないものになってしまった
-
-
ITMS-90741 Missing Icon. The watch app is missing icon.
久しぶりに App Store に英単語学習アプリ EverLearn をSubmitしたところ、I
-
-
Apple Special Event September 2018
今年も新型iPhoneを発表するアップルのスペシャルイベントが2018年9月13日2時AM(12日1
-
-
Apple Watch用バッテリーロガーを公開しました
1年前に開発し、App StoreにSubmitしたものの Rejectされ続けていたアプリをその
- PREV
- Xcode 13ダウンロード
- NEXT
- iOS15にアップデート