Use Firebase DB with local DB

前端 未结 2 919
走了就别回头了
走了就别回头了 2021-02-09 21:39

In my app I have SQLite db. I want to introduce sync between devices of my users. Firebase DB looks like an acceptable solution, but Firebase DB<

2条回答
  •  忘掉有多难
    2021-02-09 21:56

    Some options for HTML5 hybrid apps

    This is not what the OP asked about, but hopefully useful to some seekers.

    You can use any combination of client and server database to implement storing remotely-maintained data in the device so it will be available when offline.


    Some client options :

    • SQLite
      (which is using the "native" browser database, works on iOS Safari and Android webkit browsers)

    • IndexdDB
      (another "native" option, but not supported in early Android, or fully supported for iOS - so NOT a good option)

    • JayData
      (which provides an abstraction layer from the underlying native implementation)

    • Lawnchair
      (another popular client abstraction - I found the documentation lacking and have not used this for that reason)

    Some server options :

    • MongoDB
    • RethinkDB
    • MySQL (for an SQL DB on the server)

      and, of course there are many many more.

提交回复
热议问题