You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking at the network failures in my analytics for my app, and I see a lot of request being done for the Experiments API, I would say unnecessary calls.
My first item is that the API keeps counting how many API requests missed when the app is in background, and when I open the app again, all those missed API calls (which is to fetch the Feature Flags and variants) are fired at the same time, meaning you can have the app in background for 4 hours, and if you have the pollOnStart enabled (which is by default), it would do (4 times 60 minutes/ hour) 240 requests all at once.
The second is that the polling is done 1 time per minute, which seems a bit too much to fetch something that will not change much in that period of time, and I don't see a configuration setting that could change the polling intervals.
The text was updated successfully, but these errors were encountered:
Hi @lucasiturbide, many thanks for raising this issue. If local evaluation is not being used, then pollOnStart can be set to false. Additionally, stop() can be called to stop the poller when the app is in the background.
The request for more control over fetching flag configurations is recognized and we have added it to our enhancements backlog.
I am looking at the network failures in my analytics for my app, and I see a lot of request being done for the Experiments API, I would say unnecessary calls.
My first item is that the API keeps counting how many API requests missed when the app is in background, and when I open the app again, all those missed API calls (which is to fetch the Feature Flags and variants) are fired at the same time, meaning you can have the app in background for 4 hours, and if you have the
pollOnStart
enabled (which is by default), it would do (4 times 60 minutes/ hour) 240 requests all at once.The second is that the polling is done 1 time per minute, which seems a bit too much to fetch something that will not change much in that period of time, and I don't see a configuration setting that could change the polling intervals.
The text was updated successfully, but these errors were encountered: