Ionic-framework: virtualScroll + infiniteScroll not working in iOS

Created on 27 Apr 2016  路  9Comments  路  Source: ionic-team/ionic-framework

Short description of the problem:

I've got an app using virtualScroll and infiniteScroll. When I test, I expect that as I scroll down, infiniteScroll will fire off a request to fetch more data.

What behavior are you expecting?

In the browser and Android, it works. In iOS, it never fires off the request. I don't get an error - it just doesn't seem to recognize that it needs to fetch more data.

My blog post about the app is here: https://www.raymondcamden.com/2016/04/25/an-example-of-virtualscroll-and-infinite-scroll-in-ionic-2/

The specific code base is here:

https://github.com/cfjedimaster/StrongLoopDemos/tree/master/superlongscroll

Which Ionic Version?
2

stale issue

Most helpful comment

+1 on this issue, also have a demo app running which showcases the issue. On Android it kinda works, but scroll back to top when adding new data to the list.

Ion-Refresher also doesn't work on iOs, seems to be working fine on Android.

https://github.com/Euricom/tryout-ionic2/tree/virtualscroll

All 9 comments

Are you trying to build for ios 9?

Yeah

Can be a problem with iOS 9 App Transport Security?

Um... no idea. :) Thing is - if it was an issue hitting the API to get data, I would not have gotten the first 'page' of data at all.

any updates?

+1 on this issue, also have a demo app running which showcases the issue. On Android it kinda works, but scroll back to top when adding new data to the list.

Ion-Refresher also doesn't work on iOs, seems to be working fine on Android.

https://github.com/Euricom/tryout-ionic2/tree/virtualscroll

infiniteScroll doesn't work on iOS even without virtualScroll. I took ionic2 tutorial starter, added http://ionicframework.com/docs/api/components/infinite-scroll/InfiniteScroll/ to main page, and it works on browser but not on iOS. doInfinite method doesn't even start there. Tried on iOS 10.3.

Then I tried it after https://github.com/driftyco/cordova-plugin-wkwebview-engine#installation-instructions and it worked.

[EDIT] Looks like infiniteScroll for UIWebView was already solved in 3.0.1

I tried exactly what @bjakubiak did. But am getting a different issue, looks like someone else had the same issue like me
Refer this - https://github.com/ionic-team/cordova-plugin-wkwebview-engine/issues/170

Any other workaround?

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

Was this page helpful?
0 / 5 - 0 ratings