I work with a Google map using Xamarin. I need the label (marker) that I put in my application to see all the devices.

For example: I created a new label on the map and the same label was displayed on another device.

While such an idea is spinning in my head: when creating a tag, send the coordinates of the tag to the third-party server (which in turn stores it) and make requests all the time in the application and show it on the map when the new tag appears.

Do I think correctly? Maybe there are other easier ways? I decided to ask first before starting to implement.

    1 answer 1

    Yes, server synchronization is the right solution. For such a simple task (displaying common simple information from the server from clients), you can even take a ready-made solution like Firebase. Here even some kind of Xamarin is:

    Firebase.Xamarin

    The general idea is:

    1. The client subscribes to receive all items from the sample in the database.
    2. When changing the database, the client will be called the method in which the modified info will come
    3. When a client adds information to a remote database, it will appear for all other subscribed clients.

    In fact, you just need to create a data model, send it and receive it. All methods for this are in lib and code is needed minimum. And the server code is not needed at all.


    It is worth noting that in the Russian Federation at the moment it is not very clear how FireBase will work, because Google did a non-mass mailing to users about stopping work with individuals because of their unwillingness to mess with VAT. But for me personally, so far everything works and there were no such letters. In any case, there are similar services, incl. domestic


    It seems that today Realm has written down an analogue of FireBase, which can be raised on its server. The result is the same thing as with Firebase, only on your server and through the usual Realm.

    https://realm.io/docs/get-started/installation/linux/

    • one
      thanks a lot, I will try - Lolidze
    • Do not throw a good example, where everything is detailed? thanks - Lolidze
    • @Lolidze, for me, everything is quite normal described in the service docks, and in the lib itself in the readme. Well, or try any article on the topic with habr - YuriySPb
    • Will it also work if I write in VS? - Lolidze
    • @Lolidze, I do not know. I do not know how to Xamarin. - Yuriy SPb