Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the firebase document ref path be customized without using the function? #5

Open
prasenjitpickcel opened this issue Jun 10, 2019 · 8 comments

Comments

@prasenjitpickcel
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@christocracy
Copy link
Member

No.

@basudevs
Copy link

basudevs commented Jun 10, 2019

Hi,
We are trying to get the gelocation when the app is at background and push the data to firestore without using any cloud functions. (We are not comfortable in using functions is, we had seen issues with cloud functions in large scale, and is an additional failure point for copying the data).From your above answer looks like this is not possible directly.
Alternatively, We would like to know if we can access location data from your library using broadcast services every 15 minutes. So that we can write our flutter code to post it to firestore.

@christocracy
Copy link
Member

I think it’s unnecessarily paranoid to write off cloud functions.

https://cloud.google.com/functions/docs/bestpractices/retries

Otherwise, see wiki Android Headless Mode

@christocracy
Copy link
Member

Automatic retrying is not available for HTTP functions.

A cloud-function to simply re-save the data with a different schema doesn't involve HTTP. And as a result, these invocations are incredibly inexpensive, at about $3.20 / 10M invocations.

@ajanieniolasolomon
Copy link

@christocracy how can I pass my usersID along with the geolocation data. Tried doing it like locationsCollection: "/locations/{$usserid}" but I notice it keeps overriding it n the cloud function.pls is there a fix because I want to attach a geolocation record to a userId

@christocracy
Copy link
Member

@ajanieniolasolomon Your collection-name needs to have an odd number of parts, yours has two (even).

eg: locationsCollection: "/users/{$userid}/locations"

@ajanieniolasolomon
Copy link

ajanieniolasolomon commented Apr 2, 2020 via email

@christocracy
Copy link
Member

Are you watching the application logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants