{"id":1900,"date":"2017-01-03T00:10:10","date_gmt":"2017-01-03T00:10:09","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=1900"},"modified":"2024-09-12T02:22:16","modified_gmt":"2024-09-12T09:22:16","slug":"ios-background-fetch-to-sync-hacker-news-stories","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/ios-background-fetch-to-sync-hacker-news-stories\/","title":{"rendered":"iOS: Background Fetch para sincronizar hist\u00f3rias do Hacker News"},"content":{"rendered":"<h2 style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; text-align: left;\"><span style=\"line-height: 1.6em;\">Introdu\u00e7\u00e3o<\/span><\/h2>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Neste tutorial, voc\u00ea aprender\u00e1 a usar o Sync Gateway e o Couchbase Lite para sincronizar as hist\u00f3rias mais recentes do Hacker News com o<br \/>\num aplicativo iOS.<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Vamos nos concentrar especificamente no recurso Background Fetch que foi adicionado ao iOS 7: os aplicativos agora podem executar pequenas opera\u00e7\u00f5es em segundo plano para buscar os dados mais recentes do servidor. Se o seu aplicativo tiver se registrado para o Background Fetch, o sistema operacional despertar\u00e1 periodicamente o aplicativo para realizar uma atualiza\u00e7\u00e3o, e o tempo m\u00e1ximo alocado em um Background Fetch \u00e9 de 30 segundos.<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Esse \u00e9 um caso de uso perfeito para uma replica\u00e7\u00e3o pull de uma \u00fanica vez. Ent\u00e3o, vamos come\u00e7ar!<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">O c\u00f3digo-fonte deste tutorial est\u00e1 em <a href=\"https:\/\/github.com\/Jamiltz\/HackerNewsSync-BackgroundFetch\">GitHub<\/a>.<\/p>\n<h2 style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; text-align: left;\">Trabalhando com o Sync Gateway<\/h2>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">A primeira etapa \u00e9 configurar o Sync Gateway. Fa\u00e7a o download da edi\u00e7\u00e3o mais recente da comunidade\u00a0<a href=\"https:\/\/packages.couchbase.com\/releases\/couchbase-sync-gateway\/1.0.3\/couchbase-sync-gateway-community_1.0.3_x86_64.tar.gz\">aqui<\/a>. Vamos usar um exemplo muito<br \/>\nconfigura\u00e7\u00e3o simples para este exemplo. Em um novo arquivo chamado <strong>config.json<\/strong>\u00a0cole o seguinte:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/Jamiltz\/d3dd77ee4c109c187134.js\"><\/script><\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">O ponto importante a ser observado \u00e9 que estamos usando o <strong>morsa<\/strong>\u00a0que salva os documentos na mem\u00f3ria. Com <strong>morsa<\/strong>os documentos n\u00e3o s\u00e3o mantidos quando<br \/>\nreiniciando o Sync Gateway. Em segundo lugar, ativamos a fun\u00e7\u00e3o <strong>CONVIDADO<\/strong>\u00a0e lhe deu acesso a todos os canais. Voc\u00ea pode adicionar o controle de acesso<br \/>\ne a l\u00f3gica de gerenciamento de usu\u00e1rios, mas, neste exemplo, desenvolveremos sem restri\u00e7\u00f5es, o que geralmente \u00e9 uma boa maneira de criar prot\u00f3tipos.<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Agora, vamos inici\u00e1-lo a partir da linha de comando com esse arquivo de configura\u00e7\u00e3o:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/Jamiltz\/926752a25d0c4c09fb97.js\"><\/script><\/p>\n<h2 style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Iniciando o aplicativo iOS<\/h2>\n<p>Configurei o projeto Xcode com Cocoapods para gerenciar depend\u00eancias, executar <strong>instala\u00e7\u00e3o do pod<\/strong>\u00a0para ter certeza de ter o <strong>CouchbaseLite<\/strong><br \/>\nvinculado ao projeto. Aberto <strong>HackerNewsSync+BackgroundFetch.xcworkspace<\/strong>\u00a0em <strong>Xcode<\/strong>\u00a0e execute o aplicativo no simulador.<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Voc\u00ea dever\u00e1 ver uma exibi\u00e7\u00e3o de tabela vazia:<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\"><img decoding=\"async\" src=\"https:\/\/cl.ly\/a5Jw\/Screen%20Shot%202015-03-05%20at%2023.58.24.png\" style=\"margin: 0 auto;display: block;\" width=\"50%\" \/><\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">De fato, primeiro precisamos adicionar algumas hist\u00f3rias do Hacker News ao Sync Gateway.<\/p>\n<h2 style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Principais hist\u00f3rias do Hacker News<\/h2>\n<p>Vamos usar o script NodeJS em <strong>worker.js<\/strong>\u00a0para obter as principais hist\u00f3rias da API do Hacker News. Usaremos o Mashape<br \/>\npara isso. Obtenha uma chave Mashape em <a href=\"https:\/\/www.mashape.com\/community\/hacker-news\">aqui<\/a><br \/>\ne cole-o no campo <strong>worker.js<\/strong>\u00a0no lugar do arquivo <strong>XXXX-XXXX-XXXX-XXXX<\/strong>.<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Instale as depend\u00eancias executando <strong>npm install<\/strong>\u00a0e iniciar o trabalhador:<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">\n<strong>$ node worker.js<\/strong><br \/>\n\u00a0<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Ele buscar\u00e1 as principais hist\u00f3rias da API do Hacker News e salvar\u00e1 5 delas no Sync Gateway. N\u00e3o h\u00e1 necessidade de processar os dados, apenas canalizamos a resposta diretamente para a porta de administra\u00e7\u00e3o do Sync Gateway, que criar\u00e1 um novo documento para cada hist\u00f3ria principal.<\/p>\n<h2 style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Acionar uma busca em segundo plano<\/h2>\n<p>Para acionar uma busca em segundo plano, podemos usar o <strong>Depurar &gt; Simular busca em segundo plano<\/strong>\u00a0no Xcode:<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\"><img decoding=\"async\" src=\"https:\/\/cl.ly\/a5GQ\/Screen%20Shot%202015-03-06%20at%2000.03.56.png\" style=\"margin-right: auto; margin-left: auto; display: block;\" \/><\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">Isso enviar\u00e1 seu aplicativo para o segundo plano e chamar\u00e1 a fun\u00e7\u00e3o <strong>aplicativo:performFetchWithCompletionHandler:<\/strong><br \/>\nobserve que iniciamos uma replica\u00e7\u00e3o pull e registramos um ouvinte de evento de altera\u00e7\u00e3o para fechar a opera\u00e7\u00e3o de busca em segundo plano quando o\u00a0<br \/>\no status da replica\u00e7\u00e3o foi conclu\u00eddo (<strong>kCBLReplicationStopped<\/strong>). Abra o aplicativo e voc\u00ea ver\u00e1 a exibi\u00e7\u00e3o de tabela j\u00e1 preenchida:<\/p>\n<\/p>\n<p style=\"font-family: sans-serif, Arial, Verdana, &apos;Trebuchet MS&apos;; line-height: 20.7999992370605px; text-align: left;\">O uso da busca em segundo plano no seu aplicativo pode melhorar muito a experi\u00eancia do usu\u00e1rio e a velocidade percebida por ele.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction In this tutorial, you will learn how to use Sync Gateway and Couchbase Lite to sync the Hacker News latest stories to an iOS app. We&apos;ll focus specifically on the Background Fetch feature that was added in iOS 7: [&hellip;]<\/p>","protected":false},"author":51,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1810],"tags":[],"ppma_author":[9028],"class_list":["post-1900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-couchbase-mobile"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>iOS: Background Fetch to sync Hacker News stories - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/ios-background-fetch-to-sync-hacker-news-stories\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iOS: Background Fetch to sync Hacker News stories\" \/>\n<meta property=\"og:description\" content=\"Introduction In this tutorial, you will learn how to use Sync Gateway and Couchbase Lite to sync the Hacker News latest stories to an iOS app. We&amp;apos;ll focus specifically on the Background Fetch feature that was added in iOS 7: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/ios-background-fetch-to-sync-hacker-news-stories\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-03T00:10:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-12T09:22:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cl.ly\/a5Jw\/Screen%20Shot%202015-03-05%20at%2023.58.24.png\" \/>\n<meta name=\"author\" content=\"James Nocentini, Technical Writer, Mobile, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Nocentini, Technical Writer, Mobile, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/\"},\"author\":{\"name\":\"James Nocentini, Technical Writer, Mobile, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ec4dfbd349cb4a321fb6a92b71a9a7f6\"},\"headline\":\"iOS: Background Fetch to sync Hacker News stories\",\"datePublished\":\"2017-01-03T00:10:09+00:00\",\"dateModified\":\"2024-09-12T09:22:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/\"},\"wordCount\":514,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"articleSection\":[\"Couchbase Mobile\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/\",\"name\":\"iOS: Background Fetch to sync Hacker News stories - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2017-01-03T00:10:09+00:00\",\"dateModified\":\"2024-09-12T09:22:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iOS: Background Fetch to sync Hacker News stories\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ec4dfbd349cb4a321fb6a92b71a9a7f6\",\"name\":\"James Nocentini, Technical Writer, Mobile, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/09977bdd14473dc23a125f2f74c3e816\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0aa80108e5c81e282d705199edae5a25f8ef92abf15cd64f8ff19837abcee09a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0aa80108e5c81e282d705199edae5a25f8ef92abf15cd64f8ff19837abcee09a?s=96&d=mm&r=g\",\"caption\":\"James Nocentini, Technical Writer, Mobile, Couchbase\"},\"description\":\"James Nocentini is the Technical Writer in charge of the documentation for Couchbase Mobile. Previously, he worked as a Developer Advocate and before that as a front-end developer for HouseTrip. He also enjoys writing Android tutorials for raywenderlich.com in his spare time.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/pt\/author\/james-nocentini\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"iOS: Background Fetch to sync Hacker News stories - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/ios-background-fetch-to-sync-hacker-news-stories\/","og_locale":"pt_BR","og_type":"article","og_title":"iOS: Background Fetch to sync Hacker News stories","og_description":"Introduction In this tutorial, you will learn how to use Sync Gateway and Couchbase Lite to sync the Hacker News latest stories to an iOS app. We&apos;ll focus specifically on the Background Fetch feature that was added in iOS 7: [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/ios-background-fetch-to-sync-hacker-news-stories\/","og_site_name":"The Couchbase Blog","article_published_time":"2017-01-03T00:10:09+00:00","article_modified_time":"2024-09-12T09:22:16+00:00","og_image":[{"url":"https:\/\/cl.ly\/a5Jw\/Screen%20Shot%202015-03-05%20at%2023.58.24.png","type":"","width":"","height":""}],"author":"James Nocentini, Technical Writer, Mobile, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"James Nocentini, Technical Writer, Mobile, Couchbase","Est. reading time":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/"},"author":{"name":"James Nocentini, Technical Writer, Mobile, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ec4dfbd349cb4a321fb6a92b71a9a7f6"},"headline":"iOS: Background Fetch to sync Hacker News stories","datePublished":"2017-01-03T00:10:09+00:00","dateModified":"2024-09-12T09:22:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/"},"wordCount":514,"commentCount":1,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","articleSection":["Couchbase Mobile"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/","url":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/","name":"iOS: Background Fetch to sync Hacker News stories - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2017-01-03T00:10:09+00:00","dateModified":"2024-09-12T09:22:16+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/ios-background-fetch-to-sync-hacker-news-stories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"iOS: Background Fetch to sync Hacker News stories"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/ec4dfbd349cb4a321fb6a92b71a9a7f6","name":"James Nocentini, redator t\u00e9cnico, celular, Couchbase","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/09977bdd14473dc23a125f2f74c3e816","url":"https:\/\/secure.gravatar.com\/avatar\/0aa80108e5c81e282d705199edae5a25f8ef92abf15cd64f8ff19837abcee09a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0aa80108e5c81e282d705199edae5a25f8ef92abf15cd64f8ff19837abcee09a?s=96&d=mm&r=g","caption":"James Nocentini, Technical Writer, Mobile, Couchbase"},"description":"James Nocentini \u00e9 o redator t\u00e9cnico respons\u00e1vel pela documenta\u00e7\u00e3o do Couchbase Mobile. Anteriormente, ele trabalhou como Developer Advocate e, antes disso, como desenvolvedor front-end da HouseTrip. Ele tamb\u00e9m gosta de escrever tutoriais sobre Android para raywenderlich.com em seu tempo livre.","url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/james-nocentini\/"}]}},"authors":[{"term_id":9028,"user_id":51,"is_guest":0,"slug":"james-nocentini","display_name":"James Nocentini, Technical Writer, Mobile, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/0aa80108e5c81e282d705199edae5a25f8ef92abf15cd64f8ff19837abcee09a?s=96&d=mm&r=g","author_category":"","last_name":"Nocentini","first_name":"James","job_title":"","user_url":"","description":"James Nocentini \u00e9 o redator t\u00e9cnico respons\u00e1vel pela documenta\u00e7\u00e3o do Couchbase Mobile. Anteriormente, ele trabalhou como Developer Advocate e, antes disso, como desenvolvedor front-end da HouseTrip. Ele tamb\u00e9m gosta de escrever tutoriais sobre Android para raywenderlich.com em seu tempo livre."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=1900"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/1900\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=1900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=1900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=1900"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=1900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}