Handling Errors
As mentioned in the Error Event section, the Flagship SDK will invoke your error handler whenever something goes wrong displaying a Feed or a Story. It's important to consider how you want to handle the different types of errors Flagship can generate.
For example, if you receive a Feed Fetch Error, it's likely that the user is offline. If you receive an Empty Feed Error, all of your posts may have expired or there are no posts published that match the user's current profile.
We recommend incorporating a static set of content in your app to display in place of a feed or a story in the case that you receive one of these errors.
Did this answer your question?
