在没有azure移动服务客户端的情况下以xamarin形式进行离线同步 [英] Offline sync in xamarin forms without azure mobile service client

查看:95
本文介绍了在没有azure移动服务客户端的情况下以xamarin形式进行离线同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Xamarin开发的新手.

I am new to Xamarin development.

我正在使用RESTful API构建Xamarin应用程序,并使用SQL Server进行在线存储,并使用SQLite进行本地存储.

I am building a Xamarin application with RESTful API and using SQL server for online storage and SQLite for the Local storage.

我需要向我的应用添加离线同步功能.

I need to add offline sync feature to my app.

是否有任何方法可以在不使用Azure移动服务客户端的情况下同步远程服务器和本地数据库?

Is there any way to sync remote server and local DB, without using azure mobile service client?

推荐答案

是的,您可以使用同步适配器,这会在后台同步数据,但这是特定于平台的,因此您也必须在本机类中实现它要进行定期同步,您还可以在Android中使用JobSchedular

yes you can make use of Sync Adapter this would sync your data in background but this is Platform specific and hence you had to implement it in Native Class Also If you want a Periodic Sync you can also use JobSchedular in Android

您可以在此处阅读更多内容 Android SyncAdapter文档

You Can Read More Here Android SyncAdapter Documentation

这篇关于在没有azure移动服务客户端的情况下以xamarin形式进行离线同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆