Saturday, May 2, 2026
HomeiOS Developmentandroid - Cloud Operate will not be triggering my client-side operate

android – Cloud Operate will not be triggering my client-side operate

[ad_1]

In our venture, we activated cloud capabilities and deployed a operate into the cloud to inform all of the shoppers each time a Distant Config worth has modified on firebase distant config.

Cloud operate:

    exports.pushConfig = capabilities.remoteConfig.onUpdate(versionMetadata => {
    // Create FCM payload to ship information message to PUSH_RC matter.

    const payload = {
        matter: "PUSH_RC",
        information: {
            "CONFIG_STATE": "STALE"
        }
    };
    // Use the Admin SDK to ship the ping by way of FCM.
    return admin.messaging().ship(payload, false).then(resp => {
        console.log(resp);
        return null;
    });
});

And I even have accomplished every little thing talked about in
https://firebase.google.com/docs/cloud-messaging/ios/send-image

However nonetheless, once I replace a key on distant config, I can see that the operate is triggered by the firebase from the cloud operate logs, however it will not name my client-side operate, which is registered to messaging.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments