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

Expose MakeInvoice and LookupInvoice as iOS AppIntents #250

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ynniv
Copy link

@ynniv ynniv commented Jan 10, 2025

Apple's AppIntents framework lets you expose actions to the Shortcuts app, which is more powerful than regular apps. By exposing MakeInvoice and LookupInvoice, you can write a shortcut that takes a screenshot, converts it to text, finds a dollar amount, makes an invoice, displays it as a QR code, and then polls for payment.

Demo: https://primal.net/e/note1d9kjv2wl7tp4zt0ntz73ycfk8s674jm7ttax9fydtlcqw8nwzf3qu8802y

I had to make a new Expo plugin for this, so also see https://github.com/ynniv/expo-ios-app-intents

@ynniv
Copy link
Author

ynniv commented Jan 11, 2025

@rolznz
Copy link
Contributor

rolznz commented Jan 11, 2025

@ynniv thanks for your PR. So it allows you to pay with Alby Go in another native app? can this work on Android as well?

There is an alternative way which does not require additional code and plugins in Alby Go, is to use NWC to connect your wallet to the application. This enables even more seamless app<->wallet communication.

@ynniv
Copy link
Author

ynniv commented Jan 11, 2025

Hi @rolznz! I've been dabbling in NWC for a couple of years now, but haven't been able to reach a specific goal for non-technical reasons. People can use this Shortcuts flow to accept Lightning in any app that they use, but it's too difficult to implement NWC directly.

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.

2 participants