<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kenmaz</author_name>
  <author_url>https://blog.hatena.ne.jp/kenmaz/</author_url>
  <blog_title>kenmazの日記</blog_title>
  <blog_url>https://kenmaz.hatenadiary.jp/</blog_url>
  <categories>
    <anon>iPhone</anon>
  </categories>
  <description>もしかしたらよく知られていることなのかもしれないけど、割とハマったのでメモ。iOSアプリでプッシュ通知機能のテストは結構面倒である。特に面倒なのが、アプリ初回起動時の挙動のテスト（以下の画像参照）。iOSのプッシュ機能は以下のような流れで設定される。 アプリ起動時にregisterForRemoteNotificationTypesメソッドを呼ぶ 端末はアップルのサーバー(APNs)と通信して、プッシュのためのデバイストークンを取得 アプリの初回起動時にのみiOSが「＜アプリ名＞はあなたにプッシュ通知を送信します。よろしいですか？」というアラートを表示する 「はい」ボタンを押すと、APNsに端…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmaz.hatenadiary.jp%2Fentry%2F20110826%2F1314376887&quot; title=&quot; iOSアプリでプッシュ通知を完璧にテストする方法 - kenmazの日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/k/kenmaz/20110827/20110827030019.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-26 01:41:27</published>
  <title> iOSアプリでプッシュ通知を完璧にテストする方法</title>
  <type>rich</type>
  <url>https://kenmaz.hatenadiary.jp/entry/20110826/1314376887</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
