90
88

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

APNSの確認ダイアログを再表示する方法

Last updated at Posted at 2014-04-08

Push通知の確認ダイアログの表示タイミングを色々テストするときに、再表示させるためのデバイスの操作を毎回忘れるのでメモ。

手順

アプリをアンインストールして1日以上経過した状態を作りだすのが重要みたい。再起動は面倒だけど省くと上手くいかないです。

  1. デバイスの時刻を自動設定から手動に変更
  2. アプリをアンインストール
  3. デバイスを再起動
  4. iPhone の時刻を1日以上未来に手動で変更
  5. デバイスを再起動
  6. アプリを再インストール

参考

Troubleshooting Push Notifications

The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.

90
88
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
90
88

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?