{"id":733,"date":"2019-11-13T12:03:53","date_gmt":"2019-11-13T12:03:53","guid":{"rendered":"http:\/\/pwa-for-wp.com\/docs\/?post_type=ht_kb&#038;p=733"},"modified":"2019-12-26T11:49:06","modified_gmt":"2019-12-26T11:49:06","slug":"pull-to-refresh-for-pwa","status":"publish","type":"ht_kb","link":"https:\/\/pwa-for-wp.com\/docs\/article\/pull-to-refresh-for-pwa\/","title":{"rendered":"Pull to Refresh for PWA"},"content":{"rendered":"\n<p>The pull-to-refresh (or swipe-to-refresh) pattern lets a user pull down on a list of data using touch in order to retrieve more data.<\/p>\n\n\n\n<p>Pull to refresh manually refreshes screen content with a user action or gesture. It\u2019s quite obvious, but still, sometimes designers use refresh indicator to show automatically update content. Since automatic refreshing mechanism doesn\u2019t require any actions from the user side, automatically update content shouldn\u2019t display a refresh indicator.<\/p>\n\n\n\n<p>This collection usually represents a constantly-updating stream<em> <\/em>of items, and you can\u2019t use an automatically update content because as you scroll up to the top it\u2019s almost expected that you\u2019ll automatically scroll up past the top since new items will be downloaded automatically all the time. <\/p>\n\n\n\n<p><strong>Step 1 \u2013&nbsp;<\/strong>First, you need to purchase and install&nbsp;<a href=\"https:\/\/pwa-for-wp.com\/extensions\/pull-to-refresh-for-pwa\/\">Pull to Refresh for PWA<\/a>&nbsp;plugin.<\/p>\n\n\n\n<p>For more details on how to download an extension for this<strong>\u00a0<a href=\"https:\/\/pwa-for-wp.com\/docs\/article\/how-to-download-an-extension\/\">Click Here<\/a><\/strong><br><\/p>\n\n\n\n<p><strong>Step 2 \u2013<\/strong>&nbsp;After Activate this plugin click on the Settings option like below the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"215\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1.png\" alt=\"\" class=\"wp-image-734\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1.png 838w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1-300x77.png 300w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1-768x197.png 768w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1-50x13.png 50w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1-60x15.png 60w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/4-1-100x26.png 100w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<p><strong>Step 3 \u2013<\/strong>&nbsp;Once you click on settings links it will redirect to Features option here enable \u201c<strong>Pull To Refresh<\/strong>\u201d option. Click on the \u201c<strong>gear<\/strong>\u201d icon like below the screenshot. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-1024x333.png\" alt=\"\" class=\"wp-image-735\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-1024x333.png 1024w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-300x98.png 300w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-768x250.png 768w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-50x16.png 50w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-60x20.png 60w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5-100x33.png 100w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/5.png 1087w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 4 \u2013&nbsp;<\/strong>Once you click on the gear icon you can see <strong>Pull To Refresh<\/strong> page check this &#8220;<strong>Pull To Refresh<\/strong>&#8221; page and then click on the &#8220;<strong>Submit<\/strong>&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"833\" height=\"253\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7.png\" alt=\"\" class=\"wp-image-790\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7.png 833w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7-300x91.png 300w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7-768x233.png 768w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7-50x15.png 50w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7-60x18.png 60w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/7-100x30.png 100w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>The output of the Pull To Refresh <\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"382\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/11\/2.gif\" alt=\"\" class=\"wp-image-744\"\/><\/figure><\/div>\n\n\n\n<p><strong>Note:<\/strong> For the upcoming update of \u201c <strong>Pull To Refresh<\/strong>\u201d plugin then you need to enter the license key for this you need to go&nbsp;<strong>WordPress Dashboard<\/strong>&nbsp;-&gt;&nbsp;<strong>PWA<\/strong>-&gt;&nbsp;<strong>Premium Features<\/strong> -&gt; In \u201c<strong>Pull To Refresh for PWA<\/strong>\u201d option enter the License key and click on \u201c<strong>Activate<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"588\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21.png\" alt=\"\" class=\"wp-image-788\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21.png 437w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21-223x300.png 223w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21-37x50.png 37w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21-45x60.png 45w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/12\/Desktop-2019-12-03-17-25-21-74x100.png 74w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/figure><\/div>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope we\u2019ve clear your doubts in case If you have any feedback or questions, Just contact us&nbsp;<strong>here and<\/strong>&nbsp;we are always available for you.<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The pull-to-refresh (or swipe-to-refresh) pattern lets a user pull down on a list of data using touch in order to retrieve more data. Pull to refresh manually refreshes screen content with a user action or gesture. It\u2019s quite obvious, but still, sometimes designers use refresh indicator to show automatically update&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[9],"ht-kb-tag":[],"class_list":["post-733","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-extension"],"_links":{"self":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/comments?post=733"}],"version-history":[{"count":19,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/733\/revisions"}],"predecessor-version":[{"id":864,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/733\/revisions\/864"}],"wp:attachment":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/media?parent=733"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=733"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}