-
Notifications
You must be signed in to change notification settings - Fork 13
fix sending notification without permission #310
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: master
Are you sure you want to change the base?
Conversation
Deploying wallet-bitcoin with
|
| Latest commit: |
227d2ff
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://667c4e1b.wallet-bitcoin.pages.dev |
| Branch Preview URL: | https://hotfix-android-notifications.wallet-bitcoin.pages.dev |
WalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying wallet-mutinynet with
|
| Latest commit: |
227d2ff
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d366c23c.arkade-wallet.pages.dev |
| Branch Preview URL: | https://hotfix-android-notifications.arkade-wallet.pages.dev |
| try { | ||
| navigator.serviceWorker.ready.then((registration) => { | ||
| registration.showNotification(title, options) | ||
| Notification.requestPermission().then((result) => { |
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.
this will trigger the permission request on start? If they reject, it's gone forever? Can we style the request with our own branding and text?
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.
I would
Ask permission only when user go in settings and enable. Eventually e can use the popup announcement or similar after user onboarded to ask for it (if installed as PWA)
Not tested (will test with preview deployment on cloudflare)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.