Listview infinite scrolling pagination not working

Hi,

I have a Listview that populates videos from the YouTube playlist API. It works perfectly without infinite scrolling but doesn't once enabled.

The API uses $.nextPageToken for pagination and I configured it to fetch this value from the last response. Unfortunately, this does not work. It just shows loading forever.

I then performed the following tests:

*Hard coding the nextPageToken in the variable for infinite scrolling and it works.

*Outputting the JSON path of nextPageToken in an alert and it works and correct.

Please any idea why this does not work when configured to fetch from last response (a shown below)

Thanks in advance.

4
1 reply