How can I share local database of an existing app with a new app and make both work on it simultaneously?

会有一股神秘感。 提交于 2021-02-08 10:47:17

问题


One of my client's inventory management project supports online as well as offline mode to manage huge inventory data and is built using Xamarin.Forms & sqlite-net. Now, the client wants to create another similar kind of app and wants us to use the same local db of the first app.

The actual functionality he needs is that if I have data in one app then it can be shared to the second app and vice-versa. Like, if I'm logged into the first app then user automatically gets logged in to second app when it is launched. For that reason being, we need to have a shared database among both these apps. So, that both apps can read and write in a shared database. How can I achieve this? What will be the best and most efficient approach in Xamarin?

After some research I've found things like shreduserid for data sharing among android apps and App Groups for data sharing for iOS app. If anyone can help me with how to work around with them and best approach to follow.

Anyone having any idea or have done such thing is requested to provide your suggestions/links/code etc.

Thanks!

来源:https://stackoverflow.com/questions/55546362/how-can-i-share-local-database-of-an-existing-app-with-a-new-app-and-make-both-w

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