4
3

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.

Firebase Cloud MessagingをiOSアプリで利用したときのメモ

Last updated at Posted at 2019-11-06
  • Apple Push Notification Authentication Keyを用意する
  • アプリIDの作成
  • プロビジョニング プロファイルを作成



You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

と言われたら 「TARGET」->「Capabilities」->「Background Modes」を「ON」にして 「Remote notification」にチェック

  • Runした際に messaging didReceiveRegistrationTokenが走るので、printされたトークンをコピーしておく

  • FirebaseコンソールのCloudMessagingからコピーしたトークンを「FCM 登録トークンを追加」してテストメッセージを送信し、受信を確認する。

4
3
0

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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?