-
Notifications
You must be signed in to change notification settings - Fork 444
Limit rewards outbound calls until rewards interaction #3410
Comments
This moves the assumption that ledger will be initialized immediately on launch, every launch, to possibly being deferred until user interaction. This change moves to match desktop's logic around ledger only being initialized on launch if a user has already enabled Rewards (in our case we check for ads enabled since we control that preference). If they have not, then no outbound calls or ledger initialization happen until after the user opens either the Rewards panel or enters the Rewards settings screen
This moves the assumption that ledger will be initialized immediately on launch, every launch, to possibly being deferred until user interaction. This change moves to match desktop's logic around ledger only being initialized on launch if a user has already enabled Rewards (in our case we check for ads enabled since we control that preference). If they have not, then no outbound calls or ledger initialization happen until after the user opens either the Rewards panel or enters the Rewards settings screen
This moves the assumption that ledger will be initialized immediately on launch, every launch, to possibly being deferred until user interaction. This change moves to match desktop's logic around ledger only being initialized on launch if a user has already enabled Rewards (in our case we check for ads enabled since we control that preference). If they have not, then no outbound calls or ledger initialization happen until after the user opens either the Rewards panel or enters the Rewards settings screen
…#3456) This moves the assumption that ledger will be initialized immediately on launch, every launch, to possibly being deferred until user interaction. This change moves to match desktop's logic around ledger only being initialized on launch if a user has already enabled Rewards (in our case we check for ads enabled since we control that preference). If they have not, then no outbound calls or ledger initialization happen until after the user opens either the Rewards panel or enters the Rewards settings screen
QA Blocked on test plan |
@srirambv Test cases added, let me know if you need any additional info 🙂 |
Test Cases as per #3410 (comment)Launched Brave and ensured that none of the above reward API calls are occurring when launching Brave and rewards is disabled:
Ensured that tapping on the rewards panel contacts the following reward API calls:
Once rewards has been enabled, ensured that the following API endpoints are contacted:
Closed/Quit Brave and relaunched while rewards was enabled and ensured that the following API endpoints are contacted:
Ensured that none of the above reward API calls are made once rewards has been disabled and the browser restarted:
Ensured only the following API call is made when viewing the
|
We'll also do a general regression check when we run through the manual passes and ensure that rewards is still working as expected 👍 |
Changing from |
Desktop does this on client side by not creating the process unless they'd previously opted in, iOS will likely have to do something similar
Test Plan
Rewards/ads domains to look for:
With a proxy app open & active (Charles, Proxyman, etc.):
The text was updated successfully, but these errors were encountered: