How can I use pull-to-refresh functionality in a PhoneGap application without iScroll?
Asked Answered
G

1

9

I have a PhoneGap project set up for iPhone, Android and WP8.

To refresh the content of the UIWebView I'd like to offer pull-to-refresh functionality to the user.

Due to other restrictions I can't use a JavaScript-solution like iScroll.

Is there a way to use native pull-to-refresh functionality that reloads the current content of UIWebView?

Gram answered 8/1, 2013 at 14:34 Comment(2)
So you can't use any of the JavaScript solutions for pull to refresh? 1. pull-to-refresh jQuery plugin 2. pull to refresh without jquery 3. pull to refresh with native scrollingCastara
@SimonMacDonald The last link you posted looked very promising but it doesn't work on Android (just tested on HTC Sensation). Also I need this to work on WP8 :-(Gram
G
8

After weeks of research I found out that there is no solution that works for all my needs. So far it seems like I needed a custom solution for each operating system. This is what I came up with:

Also it should be noted that WP8 users are not used to "pull to refresh" since it is not a common behaviour on WP. Therefore implementing pull-to-refresh for WP8 should be well thought through.

Gram answered 22/2, 2013 at 9:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.