【swift】Firebaseを使ってpush通知を飛ばしてみる

基本的な手順は、
iOSアプリPush通知 開発環境の作成手順まとめ | hrendoh's memo
【iOS】Firebase の Notifications でプッシュ通知を送る - Qiita
こちらの方々のを参考にしました。

最初から上手くいくわけはなく、最初のエラーは

 You have enabled the SignIn service in Developer Console, but it appears as though your Podfile is missing the line: 'pod "Google/SignIn" or you may need to run `pod update` in your project directory.
assertion failed: Error configuring Google services: Optional(Error Domain=com.google.greenhouse Code=-106 "Missing expected subspecs." UserInfo={NSLocalizedDescription=Missing expected subspecs., NSLocalizedFailureReason=Some subspecs are not pod installed. See log for details.}): file /Users/~~~~~~~~/AppDelegate.swift, line 56

というエラー。
pod "Google/SignIn" or you may need to run `pod update`
とあるので、
pod update
してみたがダメだったので
pod "Google/SignIn"
でいけた。

そして、次のエラー(警告)は
Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
というもの。

なんだろうと思いググって上記参考の2つ目のqiitaを色々見て修正したが消えず...

まぁ試しに飛ばしてみるかと思い、firebase consoleより飛ばしてみると飛んだ!!!

ちょっと気になるけどテストフライトで試して飛べば(まだ未検証)気にしなくもいいのかな...。