<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wheatandcat</author_name>
  <author_url>https://blog.hatena.ne.jp/wheatandcat/</author_url>
  <blog_title>wheatandcatの開発ブログ</blog_title>
  <blog_url>https://www.wheatandcat.me/</blog_url>
  <categories>
  </categories>
  <description>概要 現在開発中の Mac アプリで、定期実行と実行完了時のローカル Push 通知を実装したので、その内容をまとめる。 今回作ったもの 以下の UI で実行時間を設定する。 Mac アプリ上でスケジューラに登録し、指定した時間に処理を実行。完了後はローカル Push 通知を表示するように実装した。 今回はセキュリティの観点から、サーバー側で定期実行するのではなく、Mac アプリ自身が定期実行する 方式にしている。 Swiftでスケジューラを登録する Swift では Timer.scheduledTimerを使うことでスケジュール実行できる。 JavaScript の setTimeout …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wheatandcat.me%2Fentry%2F2026%2F04%2F28%2F215931&quot; title=&quot;Macアプリでスケジューラ + ローカルPush通知を実装 - wheatandcatの開発ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/w/wheatandcat/20260428/20260428201222.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-28 21:59:31</published>
  <title>Macアプリでスケジューラ + ローカルPush通知を実装</title>
  <type>rich</type>
  <url>https://www.wheatandcat.me/entry/2026/04/28/215931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
