PR
Calendar

// キャッシュの初期化を行う// 返り値://true : 初期化成功//false: 初期化失敗func clearCache () -> Bool {
var result : Bool = true
//appDelegateを取得するlet appDelegate = UIApplication . shared . delegate as ! AppDelegate
// データ取得前にキャッシュを初期化するdo {try appDelegate. appSyncClient ?. clearCaches ()} catch {self . errorCode = TMGPSDBProcess . DBERROR_CACHE_CLEAR_ERRORself . errorMessage = error. localizedDescription
result = false}return result}
// データ取得前にキャッシュを初期化するif ( self . clearCache () == false ) {NotificationCenter . default . post (name: postName, object: nil )return}
// データベースを検索する// 全件取得するappDelegate. appSyncClient ?. fetch (query: ListTmgpsMessagesQuery ()) {(result, error) in
if error != nil {
〜 以下省略 〜
amplify push に失敗する 2020.06.26