Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull refresh failed #360

Open
jenovateurs opened this issue Jul 10, 2017 · 5 comments
Open

Pull refresh failed #360

jenovateurs opened this issue Jul 10, 2017 · 5 comments

Comments

@jenovateurs
Copy link

Hi,
first of all, thanks for all the development you've made in this application.
I have built the Android version with a push notification functionnality, and it works well. But when I click on a notification, our latest articles don't appear in the application.
Besides, when I do a pull refresh, the application doesn't refresh the articles and I think it uses the cache.
Could you help me figure out what's blocking in the app ?
Thank you so much.

@shprink
Copy link
Collaborator

shprink commented Jul 11, 2017

in the config.default posts have a maxAge set to 10800000.

Overwrite that to 0 and let me know.

The pull to refresh should work, have you enabled the service worker (you should not)?

@jenovateurs
Copy link
Author

jenovateurs commented Jul 11, 2017

I have set the maxAge to 0 in the config.default.cson file in the posts part like this :

# POSTS PAGE
"posts":
    "query":
        "per_page": 5
        "orderby": "date"
        "order": "desc"
        "status": "publish"

  "cache":
        "capacity": 25
        "maxAge": 0

But it doesn't change anything when I test it.
I have made different tests and took several screenshots on the chrome console. Maybe these will help you to figure out what doesn't work ?
Here is the console when I restart the app :

init wordpress

And here is the console and network part when I pull to refresh :

console pull refresh
network pull to refresh
You can see that the app is using the cache to load the data.

@shprink
Copy link
Collaborator

shprink commented Jul 26, 2017

the app cache and the browser http request cache are different. Is it the same behavior on device?

@jenovateurs
Copy link
Author

By the way, I'm French so maybe we could speak in french if that's ok with you. The differents screenshots come from my smartphone's Chrome inspection & debug functionality. Chrome developer tools show me that, in my device, the request is getting data from the smartphone's cache.

@shprink
Copy link
Collaborator

shprink commented Jul 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants