FCM looked at external networking in cloud features for Firebase

I am getting an error when the external network is not available, which makes sense since I am on the free Firebase layer. But I thought Firebase services were included in the free tier and therefore I should be able to use FCM.

Here is the code I am using for my index.js for functions.

var functions = require('firebase-functions');
var admin = require("firebase-admin");

admin.initializeApp(functions.config().firebase);

exports.buttonPress = functions.https.onRequest((req, res) => {
    let testToken = "TOKEN";
    let payload = {
        data: {
            type: req.body.type
        }
    };
    admin.messaging().sendToDevice(testToken, payload)
        .then(function (response) {
            ...
        })
        .catch(function (error) {
            ...
        });
});

      

+3


source to share


2 answers


firebaser here

The account has not been configured. The external network is unavailable and quotas are severely limited. Set up your billing account to remove these restrictions.



This message is now displayed for any cloud functions that are called from free-level projects. This does not mean that any calls are actively blocked, only calls to external services will be blocked for this project.

We are looking to delete the post.

0


source


For the Free tier account, Firebase has imposed a restriction on access to an external service that is not part of the google network.



To get to the root cause of the problem, just go to your Firebase console and check the function log. The log will show you exactly which services or packages you have installed, trying to make an external HTTP request.

0


source







All Articles