久久久久久久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'>

                            主站蜘蛛池模板: 亚洲国产成人av好男人在线观看 | 欧美一区二区在线观看 | 欧美成人a | 日韩精品免费在线 | 色吊丝在线 | 国产高清在线精品一区二区三区 | 国产日本精品视频 | 亚洲乱码一区二区三区在线观看 | 久草青青草 | 成人免费网站 | 亚洲视频中文字幕 | 免费观看成人鲁鲁鲁鲁鲁视频 | 色婷婷综合久久久中字幕精品久久 | 麻豆一区二区三区精品视频 | 国产精品福利一区二区三区 | 亚洲欧美另类在线 | 欧美一区二区三区精品免费 | av电影一区 | 亚洲综合日韩精品欧美综合区 | 精品久久久久久久久久久久 | 欧美精品综合在线 | 国产91av视频 | 在线看亚洲 | 综合国产在线 | 国产欧美在线观看 | 日韩插插 | 色婷婷综合久久久中字幕精品久久 | 性xxxxx| 欧美国产一区二区 | 成人影院一区二区三区 | 偷拍自拍网 | 亚洲精品一| 波多野结衣一二三区 | 国产精品视频网 | 天天操天天天干 | 精品99在线| 国产精品视频一区二区三区四区国 | 中文字幕欧美一区二区 | 国产一伦一伦一伦 | 亚洲福利一区 | 精品一区二区三区91 |