8000 [PM-8965] Register for push notifications more aggressively by KatherineInCode · Pull Request #693 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-8965] Register for push notifications more aggressively #693

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

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

KatherineInCode
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-8965

📔 Objective

Previously, the app was only registering for push notifications on launch, which meant that it would only register for an active user at that time. This now registers more aggressively, by checking any time the user goes to the vault list. It will also register after a user has granted permission for push notifications. However, it will also only attempt to register once per day (defined as 86400 seconds), to match the MAUI app.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@KatherineInCode KatherineInCode requested review from matt-livefront and a team June 26, 2024 16:57
Copy link
Contributor
4 Warnings
⚠️ Ignoring duplicate libraries: '-lbitwarden_uniffi'
⚠️ BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift#L59: (sortTypealiases) Sort protocol composition typealiases alphabetically.
⚠️ BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift#L60: (sortTypealiases) Sort protocol composition typealiases alphabetically.
⚠️ BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift#L61: (sortTypealiases) Sort protocol composition typealiases alphabetically.
6 Messages
📖 BitwardenActionExtensionTests: Executed 0 tests, with 0 failures (0 expected) in 0 (0.001) seconds
📖 BitwardenAutoFillExtensionTests: Executed 0 tests, with 0 failures (0 expected) in 0 (0.002) seconds
📖 BitwardenShareExtensionTests: Executed 0 tests, with 0 failures (0 expected) in 0 (0.001) seconds
📖 BitwardenSharedTests: Executed 3287 tests, with 12 failures (0 expected) in 68.125 (69.15) seconds
📖 BitwardenTests: Executed 4 tests, with 0 failures (0 expected) in 0.456 (0.488) seconds
📖 NetworkingTests: Executed 26 tests, with 0 failures (0 expected) in 0.057 (0.066) seconds

Bitwarden code coverage

Total coverage: 86.23%

File Coverage
BitwardenShared/UI/Platform/Application/AppProcessor.swift 84.25%
BitwardenShared/UI/Vault/Vault/VaultCoordinator.swift 99.25%
BitwardenShared/UI/Vault/Vault/VaultList/VaultListProcessor.swift 96.57%

Powered by Slather

Generated by 🚫 Danger

Copy link
Contributor
github-actions bot commented Jun 26, 2024

Logo
Checkmarx One – Scan Summary & Details2e1e37a9-ef0c-4437-9acc-57a08275d860

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Unpinned Actions Full Length Commit SHA /build.yml: 58 Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

Fixed Issues

Severity Issue Source File / Package
MEDIUM Unpinned Actions Full Length Commit SHA /build.yml: 64

@KatherineInCode KatherineInCode marked this pull request as ready for review June 26, 2024 17:12
@KatherineInCode KatherineInCode requested a review from fedemkr July 1, 2024 16:49
Copy link
codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@e695800). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #693   +/-   ##
=======================================
  Coverage        ?   87.74%           
=======================================
  Files           ?      561           
  Lines           ?    27832           
  Branches        ?        0           
=======================================
  Hits            ?    24422           
  Misses          ?     3410           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KatherineInCode KatherineInCode merged commit 5fd083d into main Jul 1, 2024
8 checks passed
@KatherineInCode KatherineInCode deleted the pm-8965/fix-push-notifications branch July 1, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0