When paying with lnurl-pay or withdrawing with lnurl-withdraw, we should make a GET request to the domain site, parse the HTML and look for a favicon, apple-touch-icon or a manifest.json for showing an icon in the transaction list.
For normal lightning payments, we could also crawl if paying through the WebLN browser.
When paying with lnurl-pay or withdrawing with lnurl-withdraw, we should make a GET request to the domain site, parse the HTML and look for a
favicon
,apple-touch-icon
or amanifest.json
for showing an icon in the transaction list. For normal lightning payments, we could also crawl if paying through the WebLN browser.We need to store the image somehow, there are a couple of libs available. We probably need to do this manually as we need to be careful regarding with the Tor integration. https://github.com/tradle/react-native-image-store https://github.com/itinance/react-native-fs
Parsing HTML https://www.npmjs.com/package/fast-html-parser https://www.npmjs.com/package/react-native-html-parser