-
Notifications
You must be signed in to change notification settings - Fork 16
Fix background notifications failing in release builds #378
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
Conversation
WalkthroughAdded FVM config and .gitignore entry; introduced Android notification icon metadata; tightened null-safety and early-return handling in background notification code; extended notification data extraction to handle an Action.fiatSent payload. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
Catrya
left a comment
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.
@AndreaDiazCorreia las notificaciones en background funcionan, pero la UI no se actualiza, por ejemplo:
- pongo orden de venta
- la toman y recibo notificacion de Esperando invoice (aun no abro la app)
- el comprador pone la invoice y me sale la notificacion de Esperando pago
- al abrir la app me sale la factura con el QR para pagar y hasta ahi bien
- al regresar a Mi Trades la orden sale como Esperando factura (el status anterior) y en order details igual, y claro no sale el QR de nuevo para seguir
si la orden es de compra pasa al reves, pero igual se queda en el status anterior la ui
|
Volvi a probar, desinstalando todo y volviendo a instalar y ya se actualizan los status que antes quedaban trabados en ordenes de venta, en las de compra no me sale la notificacion de Esperando factura |
Changes the local notification icon from `ic_bg_service_small` to `ic_notification` and adds metadata to preserve the dedicated notification icon in AndroidManifest.xml
Catrya
left a comment
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.
ya funciona correctamente la notificación de fiat-sent, pero aun no llega la de Active al creador de un oferta de venta, en los demás casos si llega la notificación de Active, pero en ese no, seria la acción buyer-took-order.
Para reproducirlo:
- crear orden de venta
- cuando la tomen y toque pagar la factura, ir a la wallet y pagar, ahi deberia llegar la notificacion pero no llega nunca
Catrya
left a comment
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.
tACK
grunch
left a comment
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.
LGTM
Fixes background notifications that were working in debug mode but failing silently in release builds. The notification icon resource was not being found at runtime in release builds. Changed to use @drawable/ic_bg_service_small which is guaranteed to exist in all build modes. Fixes #377
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.