ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

virtualScroll + infiniteScroll not working in iOS

Open cfjedimaster opened this issue 10 years ago • 9 comments

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

cfjedimaster avatar Apr 27 '16 13:04 cfjedimaster

Are you trying to build for ios 9?

Shadowfaxenator avatar Apr 27 '16 15:04 Shadowfaxenator

Yeah

cfjedimaster avatar Apr 27 '16 15:04 cfjedimaster

Can be a problem with iOS 9 App Transport Security?

Shadowfaxenator avatar Apr 27 '16 15:04 Shadowfaxenator

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.

cfjedimaster avatar Apr 27 '16 15:04 cfjedimaster

any updates?

Shadowfaxenator avatar May 10 '16 12:05 Shadowfaxenator

+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

daviddk avatar Aug 18 '16 08:08 daviddk

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

bjakubiak avatar Apr 04 '17 04:04 bjakubiak

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?

nathan5x-zz avatar Aug 18 '17 00:08 nathan5x-zz

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!

ionitron-bot[bot] avatar Aug 18 '18 00:08 ionitron-bot[bot]