I haven’t implemented framework7’s PTR component. I’m talking about android chrome’s built-in pull to refresh. I am literally using a blank app with 0 changes.
My guess is that some panel or something behind the scenes is calling preventDefault() preventing chrome from being able to refresh the page.
Here’s an example. I can PTR the framework7 website but not my basic one.
The type of pull to refresh on a website, is implemented by the browser app (on Android or iOS). Although a Cordova app uses the same webview, if you want the same pull to refresh inside your app, for example to refresh a list view, you have to implement this using custom code.
It work’s quitte straight forward. You first have to add the correct wrappers/classes, and then add an event listener to catch the PTR event and refresh your content. This event handler can be inside a specific content component (recommended) or in a global app component.
Please note that while this solution might work to mimic native browser behaviour, plugins might not work after refresh because many plugin bindings only work on first page load. This method is meant to refresh a webpage, but might not work correctly on a hybrid app.
That is why a separate PTR method exists in Framework7