fetchNewNotifications

Fetch new notifications. While fetchNextPage is used to fetch older notifications than the ones currently loaded, this method checks for new notifications. For example, this is the method you would call on initial load, or on a "pull to refresh". If new notifications are found, the previously loaded ones will be kept if possible, but might be cleared to ensure consistency. For example, if a gap were to happen because of a refresh, old notifications would be removed from the cache.

Parameters

listener

An optional listener can be executed on success or failure with either the fetched notifications or the detailed error.