How do I create an app like user can share points to another user

A button clicks points add
That points we can share to another user

This post was flagged by the community and is temporarily hidden.

How to share in app coins another device option using firebase db

How to give coins to another device
Like user can share their coins to another user
How to create this using firebase db

As originally requested, here is an app that uses CloudDB, and its ability to store and update lists.

It depends on the atomic list updates to maintain list validity across user updates.

Each user's points are the sum of all list values added to or subtracted to that user's username/points tag/value in CloudDB.

image


cloudDB_points.aia (6.8 KB)

Each device remembers its own user name from startup, and gets 50 points at birth.

Giving another user points reduces your own points.

You can't give more points than you own.

This is the bare bones minimum functionality.

P.S. Oops, you asked for Firebase, not CloudDB. No matter, Firebase also has list value blocks, so it should be no problem for you to add a Firebase DB and switch the CloudDB blocks to FirebaseDB blocks.

2 Likes

Thank you soo muchπŸ’›

This errors are showing


The cloud DB error is interfering with retrieval of points.

Investigate what is interfering with the cloud DB access.

Are you still mooching off the free MIT cloud DB service?

P.s. see

Examine your cloud DB token to see if it got cleared.

You have to get your own database server.

This draggable block replacement will avoid premature points comparison before the points have been retrieved.

It does not, however address your CloudDB server problem.

You may post your exported aia file here with your new server if you need more eyes.

I changed cloud db to firebase db
But the error is coming from cloud db
Cloud db error
Permission denied
This is my aia file
cloudDB_points.aia (6.8 KB)

And also i enter the app not showing my points and not showing other users

If you are still getting errors from cloudDB you forgot to remove the cloud DB component in the designer.

That should also remove the rest of the cloudDB blocks.

Hope you backed up your project first!

Yes i fix that error again another problem is there
I enter the app not showing my points and not showing other users i connect two devices not working

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

cloudDB_points.aia (5.5 KB)

Is this part of a competition to see how much of an app you can get without doing any work?

You deleted the CloudDb component before adding a Firebase component and going through the blocks to insert Firebase blocks where you (I) had CloudDb blocks.

Did you not notice how the blocks now don't include any kind of database call?

Did you bother to read the blocks before running any test?

This is a FirebaseDB version of the app, after trying my own conversion and testing.

I had to add extra code because of these differences between Firebase and CloudDB:

  • the Data Changed event does not fire as often as in CloudDB on the default MIT server, so a Refresh button was needed.
  • FirebaseDB requires initialization of a list value before allowing an Append to it.
  • For testing multiple accounts, an Abandon button is needed.

Also, be aware that you'll need to establish your own Firebase server or face daily loss of your free MIT token.

image


FireBaseDB_points.aia (8.6 KB)

Its working
Thank you soo much :yellow_heart::yellow_heart::yellow_heart:
For your support