Timed Support Chat In Flutter [closed] - firebase

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working on a flutter project with payment integration. I am very good at front end side but when it comes to back-end it hurts. Anyways I want to add this functionality in my app.
The user will pay price for the consultant. Once the transaction is done I want to give the user a option to chat with the support team of the app but for only 2 days not more than 2 days after the payment. I am using purely using firebase for CRUD functions but I am stuck on this. I have done this in php with sessions but I can't figure out how can I do it using firebase.
Any detailed help/guidance will be very helpful.
Thanks.

save user profile inside firestore in a users collection
add a boolean field called subscribed which is an indicator for the user payment, and subscriptionDate
when the user subscribes, record the dattime
every time the user opens your app, first check if he's subscribed or not, then compare the current date with the subscriptionDate
if the user passed the previous step, open the chat page
you can find many tutorials on google that talks about building chat app using firebase in details

Related

A 550,000 record "Google Sheets" document we are trying to import and sync into Firebase - Load issues [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
This post was edited and submitted for review yesterday and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
We have a 550,000+ row, 5 column, 12 meg "Google Sheets" document we are trying to import and sync into Firebase RTDB.
Firebase says" Read-only and non-real-time mode activated in the data viewer to improve browser performance. Select a key with fewer records to edit or view in real time."
Our backend dev has implemented a code for realtime database sync. But he is saying that due to a Firebase limitation, realtime sync is not working efficiently because of heavy load of the data.
Our dev has tried to sync for (just) 100k entries and it was not working that efficiently over 100k**+** entries.
The spreadsheet use case is for users to search (custom widget for search) one of the column fields and then present another column to the user. This is a key function of the mobile app we hope to launch soon.
What is a good way to reduce the load?

Is there any other way to send notification messages to a user without firebase? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am currently working on an app which will be used to send important messages as fast as possible to multiple people.
I found out that there is such a thing like firebase with which it is possible to send messages from a custom server to iOS and android devices.
But I need a solid and secure solution and firebase is therefore only my plan b. I would prefer a custom solution.
How can I achieve that a message will be sent to a client without firebase? I do not want the client to check for a new message every x seconds. That would be a waste of data. The triggering must come from the server. Can this be achieved using the observer pattern?
Firebase is a online datebase. If you try to choose a db for your app, you can choose insted MongoDB, which have a online version of db.

How to store user-specific documents in firebase? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm using Flutter and Firebase Firestore to build a note-taking app. I'm trying to store each new note under the signed-in user in Firestore but the notes are visible to all users.
If you have the time, I suggest you watch this fully. It explains clearly and precisely how to make a Note making app with a clean architecture.
Reso Coder's DDD
But, if you just want to get to the firebase security rules and the implementation, then see this:
Create, Update, Delete Notes
and
Firebase Security Rules.
You might wanna see this to get the updated code after firebase's update in flutter.
You can make Collections using the unique user-ID given by Firebase at the time of Registering User!
you can get the user-ID of the current user by executing FirebaseAuth.instance.currentUser.uid
and store the notes as Documents in specific user's Collection.
At the time of Retrieval you can use the Stream Builder and give the Stream as collection of Current User's user-ID.

how to implement in app purchase for app on play store in Flutter and Firebase? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am developing app which uses ticket system and users can buy consumable tickets to spend and The ticket data should be saved in firebase firestore into user document so how to implement it?
can I use 3rd party packages like Razorpay or Square ?but by Playstore rules the transaction should be via google play billing api as they take 30% cut!?
all I want to do is when user buy some tickets and transaction is completed then their ticket quantity in firebase firestore should increase so that when the use it I can decrement that value from Firestore.
In case when you sell real tickets for some events, you can use third-party acquiring like Stripe or Square and avoid 30% Google commission.
But if you are selling virtual goods or services (including some virtual tickets in your app) you must use Google in-app purchases. Otherwise, your app might be removed from the store.
You can check our service, which makes it easy to implement in-app purchases and subscriptions. It provides simple methods so you don't have to deal with Google Billing or Apple Storekit directly.
Here is a quick start guide

How can I implement an invitation system using Flutter and Firebase realtime database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am developing a Flutter app that is using the firebase realtime database. The app shall be used collaboratively by users to collect and analyze data. Users are part of a team and the data that is collected will be associated with the team. For a user to join a team, they are required to use an invitation link that is sent out by the team leader. The invite shall use the teamId which is a unique identifier for each team.
How could I go about this.
It sounds like you have a two-step process:
Create a link for a specific team that the user can click to then get into the app as part of the team.
Sending that link to the user.
For that type of link you can use Firebase Dynamic Links, for which a Flutter wrapper exists: firebase_dynamic_links plugin.
For sending the link you have many options, but the most common ones are to send it through email or SMS/text message. When the user then clicks the link, it can open your app, and you can extract information about the team from the link.
If the target user is already using your app, you can of course skip all this and create a notification system through the Realtime Database. There's nothing pre-made for that, but it's just more use of the APIs you're already using.

Resources