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?

Michael Celey
  • 12,645
  • 6
  • 57
  • 62
Timo Ernst
  • 15,243
  • 23
  • 104
  • 165
  • So you can't use any of the JavaScript solutions for pull to refresh? 1. [pull-to-refresh](https://github.com/svdgraaf/pull-to-refresh) jQuery plugin 2. [pull to refresh without jquery](http://waynepan.com/2010/07/30/javascript-pull-to-refresh/) 3. [pull to refresh with native scrolling](http://damien.antipa.at/2012/10/16/ios-pull-to-refresh-in-mobile-safari-with-native-scrolling/) – Simon MacDonald Jan 08 '13 at 15:37
  • @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 :-( – Timo Ernst Jan 08 '13 at 16:26

1 Answers1

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.

Timo Ernst
  • 15,243
  • 23
  • 104
  • 165