久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <i id='XLfMo'><tr id='XLfMo'><dt id='XLfMo'><q id='XLfMo'><span id='XLfMo'><b id='XLfMo'><form id='XLfMo'><ins id='XLfMo'></ins><ul id='XLfMo'></ul><sub id='XLfMo'></sub></form><legend id='XLfMo'></legend><bdo id='XLfMo'><pre id='XLfMo'><center id='XLfMo'></center></pre></bdo></b><th id='XLfMo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='XLfMo'><tfoot id='XLfMo'></tfoot><dl id='XLfMo'><fieldset id='XLfMo'></fieldset></dl></div>
    1. <small id='XLfMo'></small><noframes id='XLfMo'>

        <legend id='XLfMo'><style id='XLfMo'><dir id='XLfMo'><q id='XLfMo'></q></dir></style></legend>
        <tfoot id='XLfMo'></tfoot>
        • <bdo id='XLfMo'></bdo><ul id='XLfMo'></ul>

        是否可以使用 AWS AppSync 構建離線優先的移動應用

        Is it possible to build offline-first mobile apps using AWS AppSync?(是否可以使用 AWS AppSync 構建離線優先的移動應用程序?)
        <i id='h09hU'><tr id='h09hU'><dt id='h09hU'><q id='h09hU'><span id='h09hU'><b id='h09hU'><form id='h09hU'><ins id='h09hU'></ins><ul id='h09hU'></ul><sub id='h09hU'></sub></form><legend id='h09hU'></legend><bdo id='h09hU'><pre id='h09hU'><center id='h09hU'></center></pre></bdo></b><th id='h09hU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='h09hU'><tfoot id='h09hU'></tfoot><dl id='h09hU'><fieldset id='h09hU'></fieldset></dl></div>

            <small id='h09hU'></small><noframes id='h09hU'>

            <tfoot id='h09hU'></tfoot>

          • <legend id='h09hU'><style id='h09hU'><dir id='h09hU'><q id='h09hU'></q></dir></style></legend>

                <tbody id='h09hU'></tbody>
                <bdo id='h09hU'></bdo><ul id='h09hU'></ul>
                1. 本文介紹了是否可以使用 AWS AppSync 構建離線優先的移動應用程序?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想使用 AWS AppSync 進行移動開發 (Android/iOS),但我不確定它的離線功能.

                  I'd like to use AWS AppSync for mobile development (Android/iOS) but I’m not sure about its offline capabilities.

                  根據文檔,數據將在離線時可訪問,如果客戶端再次在線,數據將自動同步.但在使用 AppSync 創建和修改離線數據之前,我找不到有關應用程序客戶端是否需要先連接到 AWS 的任何信息.

                  According to the documentation the data will be accessible while being offline and synced automatically if the client gets online again. But I can't find any information about if the app client needs to connect to AWS first, before using AppSync to create and modify offline data.

                  我不熟悉 AppSync 的底層技術(例如 GraphQL),而且我無法訪問公共預覽版來自己測試它.

                  I'm not familiar with the underlying technologies of AppSync (e.g. GraphQL) and I don't have access to the public preview version to test it myself.

                  我想讓對隱私敏感的用戶能夠在不連接到 AWS 的情況下使用應用程序,同時仍然能夠將 AppSync 用作離線數據庫.只有當用戶后來決定跨設備使用備份/同步數據時,他或她才能選擇連接到 AWS.

                  AWS AppSync 能否實現此用例?

                  Will this use case be possible with AWS AppSync?

                  不使用任何其他本地存儲(如 SharedPreferences、SQLite、Realm 等)

                  推薦答案

                  Firestore、AWS AppSync 或您自己的后端解決方案應該可以實現.您使用的任何方法都可以控制何時開始在線保存/同步內容.

                  It should be possible with Firestore, AWS AppSync or your own Backend solution. Any approach you use, you will control when you want to start saving/syncing things online.

                  您需要在設計此應用時處理所有這些問題.建議的方法

                  You need to handle all this while designing this app. Suggested approach

                  我們以簡單的 ToDo 應用程序

                  • 我會讓用戶添加 &在應用中保存待辦事項

                  • I will let User add & save Todos in app

                  所有這些數據都將保存在磁盤上(使用 SQLLITE、首選項或文件等)

                  All this data will be persisted on disk(using SQLLITE, Preferences or File etc.)

                  示例使用Android共享偏好作為本地存儲實現

                  public void saveLocalTodo(String title, String details) {
                      ArrayList<Todo> todos;
                      Todo todo = new Todo(title, details);
                      String listOfTodo = sharedPreference.getString(TODOS_LIST, null);
                      if (listOfTodo == null)
                          todos = new ArrayList<Todo>();
                      else
                          todos = gson.fromJson(listOfTodo, new TypeToken<ArrayList<Todo>>() {
                          }.getType());
                  
                      //save at 0th position, recent should always come first
                      todos.add(0, todo);
                      sharedPreference.edit().putString(TODOS_LIST, gson.toJson(todos)).apply();
                  }
                  
                  public ArrayList<Todo> getLocalTodos() {
                      ArrayList<Todo> todos;
                      String listOfTodos = sharedPreference.getString(TODOS_LIST, null);
                      if (listOfTodos == null)
                          todos = new ArrayList<Todo>();
                      else
                          todos = gson.fromJson(listOfTodos, new TypeToken<ArrayList<Todo>>() {
                          }.getType());
                      return todos;
                  }
                  
                  public void saveOnBackend() {
                      // Connect to Backend solution
                  
                      // Get all local todos from preference
                      // Save all at once in batches
                  
                      //OR
                  
                      // Get all local todos from preference
                      // Save one by one
                  }
                  

                  這篇關于是否可以使用 AWS AppSync 構建離線優先的移動應用程序?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數據中的位置?)
                  <i id='y96bJ'><tr id='y96bJ'><dt id='y96bJ'><q id='y96bJ'><span id='y96bJ'><b id='y96bJ'><form id='y96bJ'><ins id='y96bJ'></ins><ul id='y96bJ'></ul><sub id='y96bJ'></sub></form><legend id='y96bJ'></legend><bdo id='y96bJ'><pre id='y96bJ'><center id='y96bJ'></center></pre></bdo></b><th id='y96bJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='y96bJ'><tfoot id='y96bJ'></tfoot><dl id='y96bJ'><fieldset id='y96bJ'></fieldset></dl></div>

                    <bdo id='y96bJ'></bdo><ul id='y96bJ'></ul>

                        <tfoot id='y96bJ'></tfoot>
                              <tbody id='y96bJ'></tbody>
                          • <legend id='y96bJ'><style id='y96bJ'><dir id='y96bJ'><q id='y96bJ'></q></dir></style></legend>

                            <small id='y96bJ'></small><noframes id='y96bJ'>

                            主站蜘蛛池模板: 97精品超碰一区二区三区 | 一级毛片成人免费看a | 成人免费观看网站 | 精品免费av | 中文字幕日韩欧美一区二区三区 | 日韩乱码av | 欧洲国产精品视频 | 国产精品乱码一二三区的特点 | 精产国产伦理一二三区 | 国产aⅴ| 日韩精品在线播放 | 中文字幕第100页 | 欧美极品在线观看 | 精品欧美 | 成人精品视频在线观看 | h视频在线观看免费 | 国产原创视频 | 91精品国产91久久久久久三级 | 成人免费高清 | 岛国毛片在线观看 | 色综合欧美 | 日本高清aⅴ毛片免费 | 中文字幕亚洲一区 | 欧美日韩大片 | 日韩国产精品一区二区三区 | 黄免费在线 | 日韩在线播放av | 国产乱码精品一区二区三区忘忧草 | 产真a观专区 | 黄色一级大片在线免费看产 | 国产一级影片 | 国产欧美视频一区二区 | 国产精品自拍啪啪 | 国产一级免费在线观看 | 久久成人18免费网站 | 欧美一区二区免费视频 | 中文字幕av一区 | 日本免费在线 | 狠狠操网站 | 在线一级片 | 一区二区三区欧美 |