Skip to content
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

feat: modify receive screen for wallets without ln address and set up #224

Merged
merged 10 commits into from
Feb 7, 2025

Conversation

im-adithya
Copy link
Member

@im-adithya im-adithya commented Dec 18, 2024

Description

Fixes #255

Screenshots

@@ -77,92 +35,11 @@ export function Receive() {
});
}

// TODO: move this somewhere else to have app-wide notifications of incoming payments
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can address this to show a toast whenever we get a payment? because received payments via lightning address will not show any more - we are removing a feature here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we can make this provider which keeps pushing notifications via toast in-app (everywhere, not just receive), will add a commit

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this since notifications PR is now ready to merge

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@im-adithya isn't this something different? it's not related to push notifications is it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking was, if someone wants to receive notifications, they would enable from settings. And if they already have push notifications it doesn't make sense to see two notifications (one in-app toast and one native notification) for the same payment.

Also for those who don't have push notifications, we would be showing them without being prompted if they want it or not. And react-native-toast-message can't show multiple toasts at once, so it might interfere with other toasts. Best to remove this completely and keep it simple. Wdyt?

Copy link
Contributor

@rolznz rolznz Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we would be showing them without being prompted if they want it or not

What do you mean by this?

Can we re-review this, I think at least on the page if you generate an invoice and are expecting a payment, you would do this and want to actively see a confirmation on Alby Hub (e.g. a PoS flow).

If you don't manually generate an invoice and only show the lightning address, this could be different.

I'm not sure about the toasts, but I think we should think this through properly before merging it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are proceeding with removing these for now as we think notifications can bridge this gap.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened a follow up: #266 cc @reneaaron

@im-adithya im-adithya changed the title chore: separate create invoice screen from receive feat: modify receive screen for wallets without ln address and set up Feb 5, 2025
Copy link
Contributor

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, apart from the comments

@im-adithya im-adithya merged commit 0c540bd into master Feb 7, 2025
2 checks passed
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.

Introduce "Receive" screen without LN address and changes to setting up LN add
3 participants