After running the following line in node-js:
import * as admin from \"firebase-admin\";
import * as serviceAccount from \"../../firebase_service_account_key.
Did you call admin.initializeApp()
?
There are many official samples.
See:
Everything worked for me the other day, so all setup was fine. But today I got this error.
Here's what solved it for me:
firebase deploy --only
functions
This error arises if your app setup for iOS has an error in any one of the following:
Found in Settings > General > Your Apps > iOS Apps:
When adding an APNs key (Uploading to Cloud Messaging > APNs Authentication Key):