fix: iOS notification counts and sums are wacky #1796
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Partial fix of #756, 2: (notification counts and sums)
This PR provides immediate relief for iOS users, specifically fixes iOS check to enable ek's fix (
initialValue = 1
) giving proper counting and sums on all notificationsos
value is not updated between events, this fix reliably saves and gets the OS value to/fromServiceWorkerStorage
Screenshots
AMOUNT counts
![image](https://private-user-images.githubusercontent.com/6390896/400139512-f198fc1c-9b9e-4358-8abc-80defaeb79a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTk5MTcsIm5iZiI6MTczOTQ1OTYxNywicGF0aCI6Ii82MzkwODk2LzQwMDEzOTUxMi1mMTk4ZmMxYy05YjllLTQzNTgtOGFiYy04MGRlZmFlYjc5YTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTUxMzM3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTUxYTA0NDdlODc3MmJkYjZiNTRmZDM4ODliOTY0ZGNlMzY5OTVlMmI1ZTYyYTQ3Yjk5ZjNkMGFiZjE1NzZhNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.CTaeWbqkkcoNc_1Af66NC7Tk7bC_uIObEDVnCqQHXYc)
SUM_SATS sums
![IMG_1491](https://private-user-images.githubusercontent.com/6390896/400166532-be8500e8-df02-4d1c-9e11-99b4438b691f.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTk5MTcsIm5iZiI6MTczOTQ1OTYxNywicGF0aCI6Ii82MzkwODk2LzQwMDE2NjUzMi1iZTg1MDBlOC1kZjAyLTRkMWMtOWUxMS05OWI0NDM4YjY5MWYuanBlZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE1MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5ZWY0NmQ2MzdlZTQ5YjIzY2MyMTIzNmU4ZGI3YjA0MzZlOWRkYjliOTU5NmU1NjEwZmE1NGQ2ZWRhNDA4Y2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ww5DpuMKrVRB5QYzDa62M_m04W6fR9SUOv9CrJnhMJE)
Additional Context
This is part of a series of fixes tracked on #1794
Checklist
Are your changes backwards compatible? Please answer below:
Yes
On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
9, didn't test
FOLLOW
but it follows (heh) the same counting method as others, tested also with withdraw/deposit sumsFor frontend changes: Tested on mobile, light and dark mode? Please answer below:
n/a
Did you introduce any new environment variables? If so, call them out explicitly here:
No