【问题标题】:How to implement online/offline sync in ionic如何在 ionic 中实现在线/离线同步
【发布时间】:2016-04-25 22:40:27
【问题描述】:

我正在使用离子框架做移动应用程序, 在服务器中拥有 mysql db 并使用 api 处理 get 和 post 方法(响应将采用 JSON 格式) 如何在我的应用程序中实现在线和离线数据同步。 它应该像下面这样工作

- Need internet connection for first time login. so that it can pull data from server
- If user wents to offline, he should able to view, add in offline
- Once he goes to online again, the data should sync in server

【问题讨论】:

    标签: ionic-framework ionic2


    【解决方案1】:

    在 Marco Fernandes 1 年前发表的一篇使用 Ionic 1.x 的文章中。可以创建一种“4 路数据绑定”。

    在 Ionic 2 中实现这样的东西应该很容易。

    http://frontmag.no/artikler/utvikling/offline-data-synchronization-ionic

    【讨论】:

      猜你喜欢
      • 2018-09-18
      • 1970-01-01
      • 2020-01-27
      • 2018-09-14
      • 1970-01-01
      • 1970-01-01
      • 2017-12-08
      • 2010-09-21
      • 2011-09-10
      相关资源
      最近更新 更多