Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase for iOS - console stuck in Not configured for Cloud Messaging

I already configured tons of apps for APNS in Firebase and it was always painless. Today I'm tring to configure another one which I already implemented the entire SDK for Messaging, added the GoogleService-Info.plist, enabled the bundle ID for Push Notifications, runned the app with Firebase smoothly in a device.

But the Firebase console configuration screen for Notifications doesn't let me upload my certificates or my APNs Auth Key (which I already have too).

The upload buttons are missing, the "fields" are not doing anything, I already tried switching browsers and even switching the computer (Windows based).

I'm working with a mac, tried Google Chrome, tried Safari, tried Chrome for Windows (in another computer) and nothing changes... I'm stuck in this screen.enter image description here

EDIT: I inspected the console webpage and saw that my browser is getting 404 from Firebase server connection getApnsAuthKey:

{
    "error": {
        "code": 404,
        "message": "APNS cert not found for requested project and bundle ID",
        "status": "NOT_FOUND",
        "details": [
            {
                "@type": "type.googleapis.com/google.internal.firebase.v1.ErrorCode"
            }
        ]
    }
}
like image 296
gaskbr Avatar asked Jan 30 '23 00:01

gaskbr


2 Answers

I have the same problem with Firebase Console. It looks like temporary issue on server side. So here is my solution (it works for me):

  1. Open the https://console.firebase.google.com/project/your-project/settings/cloudmessaging/
  2. Press cmd+option+i in Chrome to open Dev Tools
  3. Using Dev Tools inspect grey boxes and find <button/> "Upload" element
  4. Remove display: none !important; rule from this <button/>
  5. Also disable visibility: hidden; property of button's parent div element

After that you can upload certificates or APNS key as it should be in normal.

like image 69
cmdeviant Avatar answered Feb 05 '23 15:02

cmdeviant


The Firebase may be updated with new UI -> new elements at this time (November 2017).

  • Inspect the Upload button
  • Remove disabled="disabled" attributed in the button tag enter image description here
  • Upload button is enabled! enter image description here
like image 44
Phu Nguyen Avatar answered Feb 05 '23 16:02

Phu Nguyen