GCP の管理画面見てたら iOS key (auto created by Firebase)
というのが生えてて、なんだこれいらんやろと思って消したら Firebase Remote Config でエラーが出てしまった。
Firebase Remote Config のエラー
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: [firebase_remote_config/internal] Failed to get installations token. Error : Error Domain=com.firebase.installations Code=2 "Too many server requests." UserInfo={NSLocalizedFailureReason=Too many server requests.}.
対処法
Key を再作成して、GoogleService-Info.plist
の API_KEY を再作成したものに変更する。
GCP 上で Key の再作成も可能だが、Firebase の画面で プロジェクトの設定
-> アプリを追加
から適当にアプリを作成すると Key が作成されるので、GoogleService-Info.plist
の API_KEY を新しく作成したものに変更するのが楽。適当に作成したアプリは消してしまって問題ない。
これで Firebase Remote Config も無事利用できるようになった。
参考