How do you link the same app on two different phones?

I think the blocker is the complexity of your application, which would first have to be understood to be able to debug it, which takes a lot of time. The second inconvenience is that everything is in a language that not everyone knows. So if you have a problem understanding something, present this problem in a simple project created just for this purpose, with UI in English.

It is in another language because it is the original and where I have made the preparations to explain it in a document. And that is the problem, now I am going to pass it on to you in English and see if you can help me.

Your application also has many pages, you should create some simple example that will illustrate what you can't do. We are not here to create the application logic for you, we are here to suggest and lead you to the right track. There are many posts here where you tried to solve the problem. Write at what stage you are and what is still missing.

Where?

So what about this? What's next? I understand that the problem is with the disappearing pin?

When you run the site, check in tinydb whether permissions have been granted:

But you don't save the permissions in tinydb but in clouddb, which doesn't make sense:


This is my idea

To me too.

Describe what each screen does.

Screen 1:
Reminder, reminds the user when to eat or take the medication.

Screen 2:
Reminds the user when it is time for a medical appointment

Screen 3:
Locate another user through the cloud, (so that one can see the location of user_a, to know where they are at all times). As an example of sharing WhatsApp location, but do it automatically.

So the location from each app should be saved in the cloud. Should only the last known location be saved? So you should have something like a user registration so you know what location a user is. Is there a registration here?

At first it was thought that it was not necessary to create a user and that is why I do not have it in the project, there would only be two users, 1 and 2.

If for some reason you wanted to sell, you would have to do something like a server so that each one has their own cloud. But that's very complicated.

If you could help me with what I asked you at the beginning, you would make me the happiest person in the world.

Here I also leave you the project translated into English.
Trabajo en ingles.aia (804.9 KB)

There are too many unknowns here to be able to provide clear help. Everyone creates applications with their own thoughts and their own invented logic. I don't know your logic, so I have questions. If there is no user registration, how is the application supposed to know whose location it is saving? And how is it supposed to know under which tag to save it? A separate cloud is not used for each user, one cloud and an appropriate data structure saved under a tag for a given user are enough. Therefore, some identifier is needed, which the application will use as a tag to save the location. The tag must be entered during registration. Secondly, I understand that user A is supposed to see the location of user B, and user B is supposed to see the location of user A?

Yes that is.
But I don't know how to do it, I would have to create two users, A and B, A would be me and B would be you. You could make me see your location and you see mine.

Ok, I think you can use a random number generator to create an identifier. The second thing is the location. After closing the application, the location will not be available, because then you would need a service that would read the location in the background, which is only possible with an extension. So you can agree that the location will be saved only when the application is open, and after closing the application until the system kills the application.

Here's my shot at user location tracking, by most recent location found in the current date by device.


track_all_users.aia (4.8 KB)

I use a CloudDB tag/value for a list of all location sensor results by date, to allow cleanup of old data from yesterday and before, and to limit data volume.

Unique users are tracked by SystemDateTime of first use of the app. No two users would ever start this app for the first time at the same millisecond, I am sure.

Probably, a Clock Timer should be added to retrieve today's list periodically.

I could not get stuff to stick to my Markers for display.

Here is my solution, on the location screen there is a button that opens the list of users, we can select a user, then the location and marker on the map will be displayed and the user will start being tracked on an ongoing basis.

Trabajo_en_ingles1.aia (810.3 KB)

Hello, I have been without internet for a while and that is why I have not been able to contact you, thanks for the help and one thing, because it won't let me download the aia file. I get this message.

Screenshot 2025-01-06 00.00.12

Thank you, and one thing in the other two sections is not saved in the cloud, you can take a look at it, and thank you very much for your help.