-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Push Notifications and Background Transaction Fetching #267
base: main
Are you sure you want to change the base?
Conversation
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.
Left a couple of questions
try { | ||
const transactions = await getAccountTransactions({ | ||
address: walletObject![zone].address, | ||
zone: Zone[zone], |
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.
no need to do this I think, right?
? 'sent' | ||
: 'received'; | ||
const value = Number(latestTransaction.value) / 10 ** 18; | ||
const message = `You ${type} ${value} QUAIs`; |
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 text should be localized
Description:
This pull request adds two main features to the wallet app: push notifications using @notifee/react-native and background transaction fetching with react-native-background-timer and react-native-background-fetch. The purpose is to enhance the user experience by providing real-time notifications and seamless transaction updates even when the app is not actively in use.
Changes Made:
Features Implemented:
Dependencies and Libraries:
Testing:
Screenshots or GIFs:
Related Issues:
Checklist:
Additional Information:
The background transaction fetching feature is expected to improve user engagement by providing up-to-date transaction information even when the app is not actively used.
Next Steps:
In the upcoming pull request, I plan to implement deep linking functionality to redirect users to the confirmation page directly from the push notification, providing a smoother and more intuitive user experience.