Why Nostr? What is Njump?
2024-05-23 14:59:19

Derek Ross on Nostr: How to use Nostr while you're offline via Amethyst Yesterday, some of you may have ...

How to use Nostr while you're offline via Amethyst

Yesterday, some of you may have seen my test notes as I was testing out a scenario where I had lost Internet access and still wanted to use Nostr. Maybe you live in a rural area like me and sometimes your cellular service is spotty. Maybe you are about to board an airplane and don't want to pay for expensive and often shitty WiFi. This solution will work for you, if you have Android.

First, you'll need to install the Citrine relay on your mobile device. This is a relay that runs locally on your device. You can install it after you download it from GitHub or you can use an application manager such as Obtainium or Zap.store.

https://github.com/greenart7c3/Citrine

Once installed, launch the Citrine application and copy the relay URL from your notification drop down shade. It will look something like this.

ws://localhost:4869

Next, head into Amethyst's relay settings and add this new relay. Press save. That's it!

The next time you are without Internet access (or you can turn off WiFi and mobile data to test) you'll need to make sure that your new local really is running and then you'll creates new notes and replies as you previously would have done and post them as normal. This time however, they will only get posted to your local relay on your device.

Once your Internet connectivity has returned, you will need to re-broadcast your notes and replies out to all of your other relays for other people to be able to read them. That's easy to do, though you do need to do this manually for everything that you created while offline.

That's it! You can now use Amethyst offline and broadcast your offline events to the world at a later time.

I did try this with Primal on Android and had issues. First, when I added the new Citrine relay, all of my relays were nuked and I had to add them all back. 😡 Second, Primal will post to your Citrine relay when you're offline. I verified that the notes were there via Amethyst. However, once back online, the notes no longer showed up ony profile tab. Lastly, even if they did show up, Primal does not give you an option to broadcast an event from your timeline.

Good luck!
Author Public Key
npub18ams6ewn5aj2n3wt2qawzglx9mr4nzksxhvrdc4gzrecw7n5tvjqctp424