Flutterflow hides the fcm_tokens subcollection - need these tokens for multicast fcm notifications from a backend

Hi everyone,

Have an issue that hopefully someone may be able to help with please?

Status:

Currently developing an app that uses Xano as a backend for cloud logic, Firestore for realtime data and FCM only, and of course FF for the UI.

Problem:

FF seems to intentionally hide the "fcm_tokens" sub collection under the users collections - thus preventing you from being able to retrieve a users FCM token(s) from within FF.

Ultimately, preventing you from being able to send FCMs from outside of FF / your app.

I my search I did come across this post on reddit; https://www.reddit.com/r/FlutterFlow/comments/18cw4uz/how_to_trigger_push_notifications_outside_of_the/ where someone had the same issue and managed to find a workaround by directly using the firestore REST API to retrieve documents from the fcm_tokens sub collection.

I cannot however seem to get this to work!!!!

I can create a signed JWT and authenticate with google cloud from Xano just fine, and I can also send a FCM from Xano using the access_token generated from the response to authenticate (by manually copying and pasting a FCM token from Firestore console into my API request in Xano).

But.... I cannot seem to get a simple document retrieval request working from Xano - have double checked the IAM and service accounts in google cloud - but I just get a "the requested url is not found on this server - thats all we know" response.

Obviously missing something - does anyone have a resources / guides please?

Thanks alot!

1 reply