Maximize Page Value Syncing between Multiple Users in App Maker?

五迷三道 提交于 2019-12-11 02:42:09

问题


I would like to know how the best way and how to ensure multiple users using an App Maker app see the same data when using the App simultaneously.

For example, if two users are on a ContactEdit page, for example, and they are editing the same Contact item details. If the datasource is set to autosave (i.e. not manual save mode), is the expected behavior that if one user updates Contact Name (input/edit field for the Contact item's name), that the other users viewing the same ContactEdit page for that item will also have its Contact Name field updated with the new value?

Or is it perhaps only bindings that might "push" changes to another user? For example, if there is a label widget at the top displaying the Full Name of the contact, which is bound to the Contact Name field, will that update for all users or just the current user?

In my testing (in preview mode), it seems that the data only updates once I refresh the page manually (not sure if this is a preview mode limitation or not). It seems that unless the datasource is reloaded (and even when I added a Datasource Reload onAttach of the page it wasn't always consistently updating and I would need to navigate away first and then back), changes are not "pushed" to other users, is that correct? Is there a way to push changes to all users immediately?

Thanks for your time and consideration!


回答1:


If you are looking to resemble something like in the image below, I strongly suggest you to use Firebase.

I recommend you to read the documentation to get started with Firebase. Otherwise, it is an extremely appealing feature for appmaker native datasources. Good luck!



来源:https://stackoverflow.com/questions/50115856/maximize-page-value-syncing-between-multiple-users-in-app-maker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!