<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oishi-kenko</author_name>
  <author_url>https://blog.hatena.ne.jp/oishi-kenko/</author_url>
  <blog_title>おいしい健康　開発者ブログ</blog_title>
  <blog_url>https://oishi-kenko.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
  </categories>
  <description>こんにちは、iOSエンジニアの山田です。 おいしい健康アプリでもローカルのプッシュ通知を実装しており、とくに食事や体重といった記録のリマインダーとして活用しています。 直近で既存のローカルのプッシュ通知の実装を大きく作り変える機会があり、その中で調査と検証を繰り返して得られた知見について紹介します。 大きく分けて以下の4つになります。 プッシュ通知で利用されるメソッドの新旧 プッシュ通知を削除する上での注意点 通知が発火しない落とし穴 簡便なデバッグ方法 プッシュ通知で利用されるメソッドの新旧 プッシュ通知の実装は以下の3ステップに大別されます。 通知リクエストの作成（UNNotificati…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foishi-kenko.hatenablog.com%2Fentry%2F2025%2F01%2F22%2F160319&quot; title=&quot;UNNotificationCenterの通知が発火しない - おいしい健康　開発者ブログ&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/o/oishi-kenko/20240823/20240823162116.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-22 16:03:19</published>
  <title>UNNotificationCenterの通知が発火しない</title>
  <type>rich</type>
  <url>https://oishi-kenko.hatenablog.com/entry/2025/01/22/160319</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
