[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 されることで落ちてしまうのだろうか。
関連記事
-
dyld`__abort_with_payload:でクラッシュ WatchKitApp on Xcode11.1
Xcode 11.0 や Xcode11.1で以前はビルドして実行できていたWatchKi
-
Xcode will continue when iPhone is finished. が表示されて Apple Watch でデバッグ実行できない
Apple Watch 開発をしていると、Xcode will continue when
-
watchOS8 アップデート内容
この前購入した Apple Watch SE は watchOS 7が入っていたが、Absolut
-
Apple Watch 対応アプリようやくSubmit完了
ようやく Apple Watch 対応したアプリのSubmitが完了した。 とりあえずの対
-
1年たったのでRejectされていたApple Watch アプリを再度提出してみる
約一年前に作成したApple Watchアプリは当時何度審査に提出してもRejectされていたが、
-
Apple Special Event 2019
https://japanese.engadget.com/2019/09/10/5-iphone
-
[iOS SDK] WatchKitでできることできないこと 2015年3月
Apple Watch発売日(2015年4月24日)までに自作アプリの WatchKit対応
-
Xcode 13.1 アップデート
Apple、統合開発環境「Xcode 13.1」をリリース:CodeZine(コードジン)
-
ITMS-90741 Missing Icon. The watch app is missing icon.
久しぶりに App Store に英単語学習アプリ EverLearn をSubmitしたところ、I
-
Apple Special Event 2015
https://www.gizmodo.jp/2015/09/applelive_event_ip
- PREV
- Xcode 13ダウンロード
- NEXT
- iOS15にアップデート