I already know that. When I pass information between screens, TinyDB is better. But I want it to see the same thing on two devices and for that CloudDB is better. But I don't know how to do it, if you help me do it you would help me a lot.
In this case, the location will be more complicated, since you have to take the location of the person who sent it and not the other.
And I don't understand how it could be done.
A very simple example:
Okay, if the screen that receives it as it does. That is, on the other screen, how should I do it?
I just need this to finish the job. About passing information from one screen to another with the Cloud.
Funny, I just did a very similar app here:
For your app, you would need to keep the registration process to give each user a unique name, and you would need four items posted to the central list each time a user reaches a new location:
- user
- lat
- long
- timestamp
You could scan the CloudDB list and regenerate Markers from those entries, with Titles or Descriptions containing the users and timestamps.
For my app would it be the same as yours?
In my case there are no more users, there is only one and it would be that every 30s the GPS information of the other user will be updated, to know where they are at all times. It would be something similar to what WhatsApp has.
You would need to drag out a cloudDB component in the "other" screen
Yes, but I don't know how to put the right blocks, because my time is minimal and I don't have much.
In two days I should hand in the work and I have been trying to do this for about two months, I just want you to help me, telling me what I have to put in so that it turns out well.
I have shown you the basic blocks you need, and advised on how to share cloudDB data across screens in your app. What more do you need to know?
I don't know how to do it, I need more explanations
It cannot be done without having to create a user.
That is, take the location and put it on the other screen. The other screen is independent.
It would be the same application, but on different screens.
Just transfer the location from one screen to the other.
I mean that it is automatic, that it is not sent from a button or a leabel. Make it automatic.
And block the location of the other mobile
Then I'll give you a photo of my idea so you can understand me better. I have changed now, with what I told you this
Exactly what my blocks do, on both devices
Two last things, what are the blocks? And can you block the location of mobile 2 to only see that of mobile one?
if username is not my username