-
Notifications
You must be signed in to change notification settings - Fork 27
feat: added ability to pause the in-app polling #927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. |
SDK binary size reports 📊SDK binary size of this PR
SDK binary size diff report vs. main branch
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #927 +/- ##
==========================================
+ Coverage 62.84% 63.86% +1.02%
==========================================
Files 166 166
Lines 7345 7387 +42
==========================================
+ Hits 4616 4718 +102
+ Misses 2729 2669 -60 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking this till we discuss it on Monday
Problem:
We currently keep on polling for in-app messages weather user expects it or not, if a user wants to temporarily stop the networking requests for the session, they should have the ability to do so.
Summary
• Add
pauseMessageFetching()
andresumeMessageFetching()
API methods toMessagingInApp
module for controlling in-app message fetching• Enable developers to temporarily stop and restart periodic message polling from the server
Test plan
pauseMessageFetching()
dispatches correct action and stops making network requestsresumeMessageFetching()
dispatches correct action and restarts making network requestsisMessageFetchingPaused
propertyHow to test
In the sample app, you can test the new polling control functionality:
pauseMessageFetching()
behind the click the "Random Event" buttonresumeMessageFetching()
behind the Click of "Custom Event" button